Friday, June 18, 2010

Make a service persistant on Ubuntu

The latest versions of Ubuntu (10.04 is where I noticed this behavior) ignore LSB configuration, which makes chkconfig not work for some scripts.  Instead, use update-rc.d-insserv to enable a service after reboot as shown.  This example enables the Samba services after a reboot.

update-rc.d-insserv nmbd defaults
update-rc.d-insserv smbd defaults

No comments: