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!
|
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. |
chkconfig will save settings. See man pages for correct syntax.
The gui to modify services is under systems -> settings. |
Cool, I wasn't sure about chkconfig saving settings. Thanks!
|
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. |