LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Auto startup (https://www.linuxquestions.org/questions/linux-software-2/auto-startup-248288/)

binumvk 10-28-2004 05:30 AM

Auto startup
 
i am having one linux box.yesterday i was installed a shutcast server(from winamp) in my box.it is working fine,but every time i want start it manually
./sc_serv.Is it possible to start that one automatically next boot time.

/bin/bash 10-28-2004 06:22 AM

Most Linux distros have a file /etc/rc.d/rc.local for you to put startup scripts in.

binumvk 10-28-2004 06:46 AM

Syntax
 
ok for example my execuble is in ~/shoutcast/./sc_serv.how can i give this file in /etc/rc.d/rc.local.What is the syntax .

whansard 10-28-2004 06:48 AM

there are several ways, depending on your distribution. you can probably add the command you need to start the program to the end of /etc/rc.d/rc.local if that file exists.

binumvk 10-28-2004 06:55 AM

In redhat
 
ok for example my execuble is in ~/shoutcast/./sc_serv.how can i give this file in /etc/rc.d/rc.local.What is the syntax .



Iam using redhat 9

/bin/bash 10-29-2004 06:15 AM

Just replace the tilde character with the path to your home directory, e.g.

~/shoutcast/./sc_serv
should be
/home/<user>/shoutcast/./sc_serv


All times are GMT -5. The time now is 06:52 AM.