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 |
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. |
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) |
Thank you shizzles, it works well now, thanks a lot
|
All times are GMT -5. The time now is 01:36 AM. |