ColdCore/service/ctf-platform.service

18 lines
419 B
INI
Raw Permalink Normal View History

2016-12-05 20:56:35 +00:00
[Unit]
Description=IceCTF platform
Requires=ctf-platform.socket
After=network.target
[Service]
PIDFile=/srv/run/ctf-platform/pid
User=deploy
Group=deploy
WorkingDirectory=/srv/ctf-platform/
ExecStart=/usr/local/bin/gunicorn --pid /srv/run/ctf-platform/pid app:app
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
Environment=PRODUCTION=true
[Install]
WantedBy=multi-user.target