-
-
Save mjlassila/051d3b6497be9dcff602 to your computer and use it in GitHub Desktop.
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
# tapei.conf | |
description "This is a *very* simple elevator implementation serving as a starting point for code-story S03E01" | |
start on startup | |
stop on shutdown | |
script | |
echo $$ > /var/run/tapei.pid | |
mkdir -p /home/jlm/tapei | |
cd /home/jlm/tapei | |
exec sudo -u jlm /usr/bin/npm start | |
end script | |
pre-start script | |
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Starting" >> /var/log/tapei.sys.log | |
end script | |
pre-stop script | |
rm /var/run/tapei.pid | |
echo "[`date -u +%Y-%m-%dT%T.%3NZ`] (sys) Stopping" >> /var/log/tapei.sys.log | |
end script | |
respawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment