LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2005, 05:32 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
How to make service always start?


In fedora there is a graphical tool which you can use to always make a certain service start or stop for a given run level. How do I accomplish this from the commandline? I think changes make using chkconfig are lost after rebooting correct? What command permanently makes that change? Thanks!
 
Old 01-05-2005, 05:37 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
What your talking about is Init scripts. Look in your /etc directory. Usually under names such as rc.d, init.d or rcX.d where X is the run level.

Depending on your system these are altered in diffrent ways, I know Debians, but I can't remeber how Redhat set them up.
 
Old 01-05-2005, 05:40 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
chkconfig will save settings. See man pages for correct syntax.

The gui to modify services is under systems -> settings.

Last edited by michaelk; 01-05-2005 at 05:41 PM.
 
Old 01-05-2005, 06:23 PM   #4
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Original Poster
Rep: Reputation: 17
Cool, I wasn't sure about chkconfig saving settings. Thanks!
 
Old 01-05-2005, 06:25 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If you use chkconfig its easy.. say I want the service "sshd" to start on runlevels 3, 4 and 5.. I would do a:

chkconfig sshd --levels 345 on
 
  


Reply



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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
service does not start Aljaber Fedora 11 12-01-2005 07:07 PM
service could not start LinuxRam Linux - Newbie 4 08-26-2004 06:03 AM
Service start-up n.antonio Linux - Software 2 05-02-2003 09:57 PM
Start service HiGate Linux - General 3 01-25-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 PM.

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
Open Source Consulting | Domain Registration