Sunday, April 24, 2011

How to auto restart services when linux reboots

Use chkconfig command.

To list services:
chkconfig --list [service]

To add service:
chkconfig --add {service}

To remove service:
chkconfig --del {service}

To change level of service:
chkconfig [--level {level}] {service} {on|off|reset|resetpriorities}

No comments: