Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic startup #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

charlesbrandt
Copy link

Just a quick note about starting automatically. Thanks for the template!

@fhd
Copy link
Owner

fhd commented Apr 12, 2014

Sorry, completely missed this and happened upon it by chance!

------------------
Continuing the above example, to have the service start automatically when the system starts, you can register it as follows:

sudo chmod +x /etc/init.d/algorithms
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, thought it was obvious that it needs to be executable. Well wouldn't hurt to mention this, but I think this should be done above, under Script usage, because that part already assumes that the script is executable.

@Pamplemousse
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants