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

16 lines
350 B
Desktop File

[Unit]
Description=easyctf static file server
After=network.target
[Service]
EnvironmentFile=/var/filestore/env
PIDFile=/run/filestore/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