LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to make service always start? (https://www.linuxquestions.org/questions/linux-software-2/how-to-make-service-always-start-274340/)

Arodef 01-05-2005 05:32 PM

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!

leonscape 01-05-2005 05:37 PM

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.

michaelk 01-05-2005 05:40 PM

chkconfig will save settings. See man pages for correct syntax.

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

Arodef 01-05-2005 06:23 PM

Cool, I wasn't sure about chkconfig saving settings. Thanks!

trickykid 01-05-2005 06:25 PM

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


All times are GMT -5. The time now is 06:15 AM.