Skip to content

Instantly share code, notes, and snippets.

@ansonl
Last active November 3, 2021 18:01
Show Gist options
  • Save ansonl/8251d327fb73b93807f3 to your computer and use it in GitHub Desktop.
Save ansonl/8251d327fb73b93807f3 to your computer and use it in GitHub Desktop.
upstart autodoge service
#place in /etc/init/autodoge.conf
description "Let the doge flow on boot."
author "Anson Liu - support@ansonliu.com"
start on runlevel [2345]
stop on shutdown
script
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
set -x # tell sh to display commands before execution
exec /home/azureuser/boot.sh
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment