Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-16-2009, 11:24 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
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
Old 01-16-2009, 11:44 AM   #2
LQ Newbie
Registered: Jun 2005
Location: Chicago
Distribution: Ubuntu Server & Debian 6
Posts: 23

Rep: Reputation: 1
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.
Old 01-16-2009, 11:44 AM   #3
LQ Newbie
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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)
Old 01-16-2009, 11:48 AM   #4
LQ Newbie
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you shizzles, it works well now, thanks a lot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 07:55 PM
x-server fail to start every time i reboot sadz Linux - Newbie 4 07-29-2008 10:14 AM
Where does RH8 daily set system time to hardware clock time smartnorman Red Hat 1 05-24-2006 02:42 PM
Why does my system reboot every time i try.... Hdstdlxe Linux - Newbie 9 10-22-2005 04:31 AM
start the service for every boot time yuva_mca Linux - General 3 03-09-2004 01:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration