update systemd service files

This commit is contained in:
creme 2023-01-28 13:29:56 +01:00
parent 7c8a292475
commit efbbcd0be1
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
2 changed files with 20 additions and 3 deletions

View File

@ -4,12 +4,12 @@ After=remote-fs.target
[Service]
Type=oneshot
User=nullptr
User=0x0
WorkingDirectory=/srv/0x0
BindPaths=/srv/0x0
Environment=FLASK_APP=fhost
ExecStart=/usr/bin/flask prune
ExecStart=/srv/0x0/venv/bin/flask prune
ProtectProc=noaccess
ProtectSystem=strict
ProtectHome=tmpfs
@ -19,4 +19,4 @@ ProtectKernelLogs=true
LockPersonality=true
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

17
0x0.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=null-pointer.service
After=network.target
[Service]
Type=simple
User=0x0
Group=0x0
WorkingDirectory=/srv/0x0/
ExecStart=/usr/bin/uwsgi_python39 --socket 127.0.0.1:3031 --wsgi-file fhost.py --callable app --processes 4 --threads 2 --master
Restart=always
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=default.target