Daemons


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Daemons
# 1  
Old 02-20-2003
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....
# 2  
Old 02-20-2003
put the command to start them in /etc/rc.(NUMBER)
yls177
# 3  
Old 02-20-2003
Thanks....but i don't know which number .... I have rc.0,rc.2,rc.3.......
Numbers means Run-Levels ?
# 4  
Old 02-20-2003
That is correct - the numbers are the run levels.
# 5  
Old 02-20-2003
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  
Old 02-21-2003
Quote:
Originally posted by norsk hedensk
Thank you very much...!.... I have understood, how it works and now is all OK.......Smilie.....
# 7  
Old 02-21-2003
no problemSmilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Command to list down all daemons in Solaris

Hi All, Is there any command to list all running daemons in Solaris. I should able to see only running daemons. Regards, SKumar (5 Replies)
Discussion started by: nskumar
5 Replies

2. HP-UX

status of daemons

Hi there all, Hey, is there a way to get the status of all daemons running on a HPUX? in an easy way? Like the same way how to vieuw the status of packages in cmviewcl. Thanks! (1 Reply)
Discussion started by: draco
1 Replies

3. Shell Programming and Scripting

daemons definition

hi there, can somebody give me a definition for daemons, or example what are they !! and what the use for? i've done some research and all what i found is /etc/... or /usr/bin/... and i haven't quietly got the concept. any ideas !! Thanks. (5 Replies)
Discussion started by: new2Linux
5 Replies

4. Shell Programming and Scripting

piping and backgroud processes (daemons)

Hello to all, I've a strage problem here: a perl script that parses the output of sar -q 300 0 (one line of performace data each 5 min. infinately) works fine from the CLI. It processes one line output every 5 minutes. If i disconnect it from the terminal (executing it with cron, nohup startporc... (2 Replies)
Discussion started by: demwz
2 Replies

5. UNIX for Dummies Questions & Answers

Starting daemons at reboot.

I rebooted my server (solaris 5.8) and I had to manually start the cron and mailx daemons. How do I get these to automatically start at reboot? Thanks in advance. (2 Replies)
Discussion started by: shorty
2 Replies

6. Solaris

SUN SOLARIS boot: start daemons

Hi, I have a problem on a Solaris 9 server! After a restart some daemons don't start and I have to start them manually! I thing that everything is ok in the /sbin/rc3 script! And if I run manually the "/etc/init.d/xxx start" the services start without problem. I didn't find anything in... (1 Reply)
Discussion started by: ctap
1 Replies

7. Linux

A doubt on Daemons

Hi there! I'm a bit curious on something about Daemons.... Supose you have two processes say A and B, where B is a daemon. A is totally independent from B. Is there a way for A to find out B's return code? Is there a way for A to find out when B ends? Thanks! (4 Replies)
Discussion started by: marioh
4 Replies

8. Cybersecurity

root owner of daemons?

Hi all, what happens if i have a service running as root? if it is exploited what would happen? can a hacker actually becomes a hacker and screw up my whole box? thanks (1 Reply)
Discussion started by: xNYx
1 Replies

9. IP Networking

DNS daemons

Does anyone know the command to start the DNS Daemon. I looked in the /etc/init.d/inetsvc file and it tells me what the text should look like. When I go to open the corresponding files they are encoded and I can't read them. So is there a command that will start the DNS daemon? If... (8 Replies)
Discussion started by: Deuce
8 Replies
Login or Register to Ask a Question