20 lines
536 B
Desktop File
20 lines
536 B
Desktop File
[Unit]
|
|
Description = PyGPS
|
|
After = network.target
|
|
|
|
[Service]
|
|
PermissionsStartOnly = true
|
|
PIDFile = /run/pygps/pygps.pid
|
|
User = gps
|
|
Group = gps
|
|
WorkingDirectory = /opt/pygps
|
|
ExecStartPre = /bin/mkdir /run/pygps
|
|
ExecStartPre = /bin/chown -R gps:gps /run/pygps
|
|
ExecStart = /usr/bin/env gunicorn -c gunicorn.cfg --pid /run/pygps/pygps.pid main
|
|
ExecReload = /bin/kill -s HUP $MAINPID
|
|
ExecStop = /bin/kill -s TERM $MAINPID
|
|
ExecStopPost = /bin/rm -rf /run/pygps
|
|
PrivateTmp = true
|
|
|
|
[Install]
|
|
WantedBy = multi-user.target
|