LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing a daemon (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-daemon-279039/)

jimwelc 01-17-2005 06:08 PM

Installing a daemon
 
Hello All,

I am very green to linux/unix and I am attempting to a bash script that will launch a daemon(service). I need this service to start each time the system boots. Does anyone know how to do this -or- can someone point me in the right direction? Any help will be greatly appreciated.

Best Regards,
-Jim

michaelk 01-17-2005 06:30 PM

What distribution / version of linux are you running?
What service are you trying to start?
Did you install this service from source code or from the original OS install?

The exact procedure depends on the linux distribution.

jimwelc 01-17-2005 10:20 PM

Hello Michaelk,

The distribution I am working with is RedHat 9.0. Basically I am a windows developer trying to move to the Linux world and I'm trying to figure out what is needed to install a service via a bash script. Is there some kind of OS config file I have to modify or is there some special location I have to place the file to ensure it gets started at boot time. Any help you can provide will be greatly appreciated.

-Jim

The exact procedure depends on the linux distribution.

michaelk 01-18-2005 07:36 AM

Here is how Redhat controls services. The startup scripts are located in /etc/init.d.
http://www.redhat.com/docs/manuals/l...down-sysv.html

If you do not need runlevel control you can start a daemon by adding a command in the /etc/rc.local file. This is the last initialization script to run.


All times are GMT -5. The time now is 11:52 PM.