Chkconfig
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 6: | Line 6: | ||
$ chkconfig --level 2345 smb on | $ chkconfig --level 2345 smb on | ||
</pre> | </pre> | ||
+ | Omitting the <code>--level</code> parameter will apply the changes to all levels. | ||
To disable the samba service: | To disable the samba service: | ||
Line 16: | Line 17: | ||
$ chkconfig --list | $ chkconfig --list | ||
</pre> | </pre> | ||
+ | |||
+ | {{note|remember that this will not start or stop the service... you must use the service's standard method if you wish to start/stop it now}} |
Revision as of 08:36, 31 March 2010
chkconfig
is used to configure the system services.
Use it in the following ways:
To make samba run at boot up:
$ chkconfig --level 2345 smb on
Omitting the --level
parameter will apply the changes to all levels.
To disable the samba service:
$ chkconfig smb off
To show the list of services:
$ chkconfig --list
Note: remember that this will not start or stop the service... you must use the service's standard method if you wish to start/stop it now