The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics 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 Display Modes
  #1 (permalink)  
Old 02-19-2003
Registered User
 

Join Date: Sep 2002
Posts: 21
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
Guest
 

Posts: n/a
put the command to start them in /etc/rc.(NUMBER)
  #3 (permalink)  
Old 02-20-2003
Registered User
 

Join Date: Sep 2002
Posts: 21
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
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
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.
  #6 (permalink)  
Old 02-20-2003
Registered User
 

Join Date: Sep 2002
Posts: 21
Quote:
Originally posted by norsk hedensk
Thank you very much...!.... I have understood, how it works and now is all OK............
  #7 (permalink)  
Old 02-21-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
no problem
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:53 AM.


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

Content Relevant URLs by vBSEO 3.2.0