Sponsored Content
Full Discussion: Daemons
Top Forums UNIX for Dummies Questions & Answers Daemons Post 34406 by norsk hedensk on Thursday 20th of February 2003 01:18:06 PM
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.
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

8. 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

9. 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
started(7)						 Miscellaneous Information Manual						started(7)

NAME
started - event signalling that a job is running SYNOPSIS
started JOB=JOB INSTANCE=INSTANCE [ENV]... DESCRIPTION
The started event is generated by the Upstart init(8) daemon when an instance of a job has finished starting and is now running. The JOB environment variable contains the job name, and the INSTANCE environment variable contains the instance name which will be empty for sin- gle-instance jobs. init(8) emits this event as an informational signal, services and tasks started or stopped by this event will do so in parallel with other activity. It is typically combined with the stopping(7) event by services declaring a dependency. Job configuration files may use the export stanza to export environment variables from their own environment into the started event. See init(5) for more details. EXAMPLE
A service that wishes to depend on another service might use: start on started apache stop on stopping apache A task that must be run after another task or service has been started might use: start on started postgresql SEE ALSO
starting(7) stopping(7) stopped(7) init(5) Upstart 2009-07-09 started(7)
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy