Skip to content

Instantly share code, notes, and snippets.

@houtianze
Created September 21, 2016 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houtianze/a00d9e8f0db5d3512398d6a7a32cd8cf to your computer and use it in GitHub Desktop.
Save houtianze/a00d9e8f0db5d3512398d6a7a32cd8cf to your computer and use it in GitHub Desktop.
Enable a SysV Init Script

(Assuming your executable script is called foo)

  1. Create your script in /etc/init.d/foo
  2. Add it chkconfig --add foo
  3. Enable it chkconfig foo on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment