LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to set a service to start any time the system reboot (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-a-service-to-start-any-time-the-system-reboot-697728/)

phongly2000 01-16-2009 11:24 AM

how to set a service to start any time the system reboot
 
my sshd deamon is off any time I reboot the box, to bring it back on, I have to manually do '/etc/init.d/sshd start'.

Is there any way I can set so the service automatically start anytime the box is rebooting? Thanks

shizzles 01-16-2009 11:44 AM

First do "chkconfig --list ssh"
This will show what runlevel, if any, it is turned on for and also if it is listed in the services to begin with.

If its listed, than just do "chkconfig ssh on"






P.S-when typing commands typed everything within the quotes NOT INCLUDING THE QUOTES.

phongly2000 01-16-2009 11:44 AM

I found it
 
sorry to bother you guys, I've found the answer as below:

#/sbin/chkconfig ssdh on (for redhat)

#chkconfig ssdh on (for sles and others)

phongly2000 01-16-2009 11:48 AM

Thank you shizzles, it works well now, thanks a lot


All times are GMT -5. The time now is 04:36 AM.