master
SneedBot 2023-07-27 23:39:21 +00:00
parent d501741332
commit e5419c2df7
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description = Opera Proxy
After = network-online.target
[Service]
Restart = on-failure
RestartSec = 30s
User = rdrama
Group = rdrama
ExecStart = /snap/bin/opera-proxy
[Install]
WantedBy = multi-user.target

View File

@ -0,0 +1,22 @@
[Unit]
Description = rDrama Chat
After = network-online.target
[Service]
Restart = on-failure
RestartSec = 10s
PermissionsStartOnly = true
PIDFile = /run/rdrama-chat/rdrama-chat.pid
User = rdrama
Group = rdrama
WorkingDirectory = /d
ExecStartPre = /bin/mkdir /run/rdrama-chat
ExecStartPre = /bin/chown -R rdrama:rdrama /run/rdrama-chat
ExecStart = /bin/bash -c 'set -a && source /e && /usr/bin/env gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 --pid /run/rdrama-chat/rdrama-chat.pid'
ExecReload = /bin/kill -s HUP $MAINPID
ExecStop = /bin/kill -s TERM $MAINPID
ExecStopPost = /bin/rm -rf /run/rdrama-chat
PrivateTmp = true
[Install]
WantedBy = multi-user.target

View File

@ -0,0 +1,22 @@
[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
ExecStart = /bin/bash -c 'set -a && source /e && SITE=marsey.world /usr/bin/env gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:5010 --max-requests 30000 --max-requests-jitter 30000 --pid /run/rdrama-marseyworld/rdrama-marseyworld.pid'
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

View File

@ -0,0 +1,22 @@
[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
ExecStart = /bin/bash -c 'set -a && source /e && /usr/bin/env gunicorn files.__main__:app -w 16 --pid /run/rdrama/rdrama.pid'
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