init-script-template
init-script-template copied to clipboard
Automatic startup
Just a quick note about starting automatically. Thanks for the template!
Sorry, completely missed this and happened upon it by chance!
Furthermore, on ubuntu 14.04, launching this script at boot cause the creation of pid files beginning with S20. As an exemple :
sudo update-rc.d algorithms defaults
and after reboot, in /var/run/ :
S20algorithms.pid
And this cause the restart and stop of the service failing because the script's function is_running() always return false. Some ideas of how to handle this ?