Adding a service to start at booting on fedora
chkconfig --list
lists all the services starting at booting with different levels
to add a service to start at booting
chkconfig --add [service_name]
ex:
chkconfig -add sshd
to add different levels(0,1,2,3,4,5,6)
chkconfig --level [levels] [service_name] [service_option>]
level: the runlevel where this service has to start (if there are more than one level enter different level without any seperator)
service options : on|off|reset|resetpriorities
ex:
chkconfig --level 2 sshd on
chkconfig --level 235 sshd on
so to add sshd to start up at booting in 235 levels
chkconfig --add sshd
chkconfig --level 235 sshd on
lists all the services starting at booting with different levels
to add a service to start at booting
chkconfig --add [service_name]
ex:
chkconfig -add sshd
to add different levels(0,1,2,3,4,5,6)
chkconfig --level [levels] [service_name] [service_option>]
level: the runlevel where this service has to start (if there are more than one level enter different level without any seperator)
service options : on|off|reset|resetpriorities
ex:
chkconfig --level 2 sshd on
chkconfig --level 235 sshd on
so to add sshd to start up at booting in 235 levels
chkconfig --add sshd
chkconfig --level 235 sshd on
Comments
Post a Comment