easyctf-iv-platform/server/systemd/easyctf.service
Michael Zhang 4225cc4dde
Initial.
2018-02-20 22:37:10 -06:00

16 lines
No EOL
337 B
Desktop File

[Unit]
Description=easyctf web server
After=network.target
[Service]
EnvironmentFile=/var/easyctf/env
PIDFile=/run/easyctf/pid
User=root
WorkingDirectory=$PROJECT_DIRECTORY
ExecStart=$PROJECT_DIRECTORY/entrypoint.sh
ExecReload=$KILL -s HUP \$MAINPID
ExecStop=$KILL -s TERM \$MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target