Skip to content

Instantly share code, notes, and snippets.

@rezigned
Last active December 19, 2015 18:18
Show Gist options
  • Save rezigned/5997452 to your computer and use it in GitHub Desktop.
Save rezigned/5997452 to your computer and use it in GitHub Desktop.
Unix commands

Start a process on server startup

CentOS

chkconfig --add <service>
chkconfig --level 345 <service> on
chkconfig --del <service>

Ubuntu

update-rc.d <service> defaults
update-rc.d <service> start 20 3 4 5
update-rc.d -f <service>  remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment