2023-07-27 23:39:21 +00:00
|
|
|
[Unit]
|
|
|
|
Description = rDrama
|
|
|
|
After = network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart = on-failure
|
|
|
|
RestartSec = 10s
|
|
|
|
PermissionsStartOnly = true
|
|
|
|
PIDFile = /run/rdrama/rdrama.pid
|
|
|
|
User = rdrama
|
|
|
|
Group = rdrama
|
|
|
|
WorkingDirectory = /d
|
|
|
|
ExecStartPre = /bin/mkdir /run/rdrama
|
|
|
|
ExecStartPre = /bin/chown -R rdrama:rdrama /run/rdrama
|
2023-07-30 01:44:15 +00:00
|
|
|
ExecStart = /bin/bash -c 'set -a && source /e && /usr/bin/env gunicorn files.__main__:app --pid /run/rdrama/rdrama.pid'
|
2023-07-27 23:39:21 +00:00
|
|
|
ExecReload = /bin/kill -s HUP $MAINPID
|
|
|
|
ExecStop = /bin/kill -s TERM $MAINPID
|
|
|
|
ExecStopPost = /bin/rm -rf /run/rdrama
|
|
|
|
PrivateTmp = true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy = multi-user.target
|