The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Starting daemons at reboot. shorty UNIX for Dummies Questions & Answers 2 04-03-2007 11:10 AM
SUN SOLARIS boot: start daemons ctap SUN Solaris 1 07-14-2005 05:07 AM
A doubt on Daemons marioh Linux 4 06-21-2005 05:29 AM
root owner of daemons? xNYx Security 1 03-12-2002 08:28 AM
DNS daemons Deuce IP Networking 8 11-29-2001 03:51 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-2003
Registered User
 

Join Date: Sep 2002
Posts: 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Daemons

MYSQL-daemon don't started automatically by system-start. And same trouble with httpd too. I have SuSE 8.0.
What can I do ?

Thanks....
Forum Sponsor
  #2 (permalink)  
Old 02-20-2003
yls177
 

Posts: n/a
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
put the command to start them in /etc/rc.(NUMBER)
  #3 (permalink)  
Old 02-20-2003
Registered User
 

Join Date: Sep 2002
Posts: 21
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks....but i don't know which number .... I have rc.0,rc.2,rc.3.......
Numbers means Run-Levels ?
  #4 (permalink)  
Old 02-20-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
That is correct - the numbers are the run levels.
  #5 (permalink)  
Old 02-20-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
if you are using a GUI then you are starting up in runlevel 5. so that means that you will want this proccess to start in run level 5. if your not using a GUI then you want runlevel 3. now your mysql and httpd (apache?) was installed by SuSE right? well if that is so then the scripts to start the programs are already there in /etc/rc.d/ . so depending on your default run level (the run level that the system is booted to) you will want to put a total of TWO simlinks in the rc?.d directory. lets assume that you are using a GUI and that your default run level is 5. so then that means that you will want to cd into /etc/init.d/rc5.d
once you have done that do an 'ls -l' youll see a bunch of simlinks and where they point to (files in /etc/init.d). for most of them there will be 2 simlinks pointing to the same place, one of the simlinks will be called S??servicename. and the same but with a K instead of an S. these mean start and kill. this is incase there is a different command to start and stop these processes. the number is the order that this will be started.



ok enough explanation, i dont know what the script in /etc/init.d/ is called for mysql, it might just be 'mysqld' but i dont know, you will have to find out that for your self. so this is howto set apache to run on boot, cd into /etc/init.d/rc5.d/
run the command:
ln -s /etc/init.d/apache /etc/init.d/rc5.d/S09apache

and then run the command:
ln -s /etc/init.d/apache /etc/init.d/rc5.d/K13apache


andyour done. restart your system to see if apache gets started successfully. now to be honest, im not really sure in what order it is to start certain services. im sure its a simple thing but i dont really know. so what i did was look in my rc3.d directory (3 because no GUI running on my server) and i looked for similar (daemon) services and looked at when they were started. SuSE already setup samba to run on boot aswell as sshd. ( i dont know why apache isnt set to run on boot by default) so the link to start sshd was S09, so i put apache as S09apache, for the kill script, i did the same thing, sshd was K13, so i put apache as K13apache. yes that is the same numberfor both. so keep track of what simlinks you put in there and if anything goes wrong just remove them. hope all that helps.
Google UNIX.COM
Closed Thread



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102