-
Notifications
You must be signed in to change notification settings - Fork 314
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
sudo update-rc.d algorithms defaults | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On debian it is
by the way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. on redhat it is
|
||
|
||
|
There was a problem hiding this comment.
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.