MarseyWorld/services/rdrama-marseyworld.service

23 lines
825 B
INI
Raw Normal View History

2023-07-27 23:39:21 +00:00
[Unit]
Description = rDrama marsey.world
After = network-online.target
[Service]
Restart = on-failure
RestartSec = 5s
PermissionsStartOnly = true
PIDFile = /run/rdrama-marseyworld/rdrama-marseyworld.pid
User = rdrama
Group = rdrama
WorkingDirectory = /d
ExecStartPre = /bin/mkdir /run/rdrama-marseyworld
ExecStartPre = /bin/chown -R rdrama:rdrama /run/rdrama-marseyworld
2023-07-30 01:44:15 +00:00
ExecStart = /bin/bash -c 'set -a && source /e && SITE=marsey.world && WORKER_COUNT=1 && /usr/bin/env gunicorn files.__main__:app -k gevent --reload -b 0.0.0.0:5010 --max-requests 30000 --max-requests-jitter 30000 --pid /run/rdrama-marseyworld/rdrama-marseyworld.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-marseyworld
PrivateTmp = true
[Install]
WantedBy = multi-user.target