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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,12 @@ Logging
By default, standard output goes to _/var/log/scriptname.log_ and
error output to _/var/log/scriptname.err_. If you're not happy with
that, change the variables `stdout_log` and `stderr_log`.

Automatic Startup
------------------
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.

sudo update-rc.d algorithms defaults
Copy link
Owner

Choose a reason for hiding this comment

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

This part is pretty distribution specific, can you add a note that this is how it works on Debian?

Copy link

Choose a reason for hiding this comment

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

On debian it is

insserv algorithms

by the way.

Choose a reason for hiding this comment

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

on redhat it is

chkconfig --add algorithms