How to add service on system reboot

Reuben D. Budiardja techlist at voyager.phys.utk.edu
Thu May 27 11:52:40 UTC 2004


On Wednesday 26 May 2004 06:43 pm, Muhammad Rizwan Khan wrote:
> Hello
>
> I have written a serive in C++,,, it runs as daemon. I always start this
> service manually typing this command:
>  /usr/bin/myservice start
> I want to run this service atomatically when system reboots.

You can put the command in /etc/rc.local. That script is run after all other 
init scripts.

RDB


-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
---------------------------------------------------------
"To be a nemesis, you have to actively try to destroy 
something, don't you? Really, I'm not out to destroy 
Microsoft. That will just be a completely unintentional 
side effect."
                 - Linus Torvalds -





More information about the redhat-list mailing list