Skip to content

Instantly share code, notes, and snippets.

@danielburrell
Last active November 9, 2016 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielburrell/9a793380d2d7a4a9814f7febff859e93 to your computer and use it in GitHub Desktop.
Save danielburrell/9a793380d2d7a4a9814f7febff859e93 to your computer and use it in GitHub Desktop.
[Unit]
Description=HatF2 webservice
After=network.target
[Service]
User=hatf2
EnvironmentFile=/etc/%p/%i.conf
ExecStart= //???? wtf is this/usr/bin/autossh -M 0 -q -N $SSH_USER@%i $SSH_OPTIONS
[Install]
WantedBy=multi-user.target
=======
# vim: set ft=upstart ts=4 et:
description "hatf2-web"
start on runlevel [2345]
stop on runlevel [!2345]
limit nofile 64000 64000
kill timeout 300 # wait 300s between SIGTERM and SIGKILL.
pre-start script
mkdir -p /var/lib/hatf2-web/
mkdir -p /var/log/hatf2-web/
end script
script
ENABLE_HATF2WEB="yes"
if [ "x$ENABLE_HATF2WEB" = "xyes" ]; then
exec start-stop-daemon --start --quiet --chuid root \
--exec /opt/solong/hatf2-web/current/bin/start --
fi
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment