Last active
November 3, 2021 18:01
-
-
Save ansonl/8251d327fb73b93807f3 to your computer and use it in GitHub Desktop.
upstart autodoge service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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