| [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