Last active
November 9, 2016 22:47
-
-
Save danielburrell/9a793380d2d7a4a9814f7febff859e93 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
[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