Skip to content

Instantly share code, notes, and snippets.

@willm
Last active August 29, 2015 14:23
Show Gist options
  • Save willm/c592b22a5ac4a65914a2 to your computer and use it in GitHub Desktop.
Save willm/c592b22a5ac4a65914a2 to your computer and use it in GitHub Desktop.
run a script on startup ubuntu
#put this in /etc/init/service.conf, for more info, see http://upstart.ubuntu.com/
start on startup
task
setuid username # will be root if this is not specified
exec /path/to/command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment