LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 01-16-2009, 12:24 PM   #1
phongly2000
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, 12:44 PM   #2
shizzles
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, 12:44 PM   #3
phongly2000
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, 12:48 PM   #4
phongly2000
LQ Newbie
 
Registered: Jan 2009
Posts: 3

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


Reply


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 08:55 PM
x-server fail to start every time i reboot sadz Linux - Newbie 4 07-29-2008 11:14 AM
Where does RH8 daily set system time to hardware clock time smartnorman Red Hat 1 05-24-2006 03:42 PM
Why does my system reboot every time i try.... Hdstdlxe Linux - Newbie 9 10-22-2005 05:31 AM
start the service for every boot time yuva_mca Linux - General 3 03-09-2004 02:18 PM


All times are GMT -5. The time now is 11:44 AM.

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