update systemd service files
This commit is contained in:
parent
7c8a292475
commit
efbbcd0be1
@ -4,12 +4,12 @@ After=remote-fs.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=nullptr
|
User=0x0
|
||||||
WorkingDirectory=/srv/0x0
|
WorkingDirectory=/srv/0x0
|
||||||
BindPaths=/srv/0x0
|
BindPaths=/srv/0x0
|
||||||
|
|
||||||
Environment=FLASK_APP=fhost
|
Environment=FLASK_APP=fhost
|
||||||
ExecStart=/usr/bin/flask prune
|
ExecStart=/srv/0x0/venv/bin/flask prune
|
||||||
ProtectProc=noaccess
|
ProtectProc=noaccess
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
ProtectHome=tmpfs
|
ProtectHome=tmpfs
|
||||||
@ -19,4 +19,4 @@ ProtectKernelLogs=true
|
|||||||
LockPersonality=true
|
LockPersonality=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
17
0x0.service
Normal file
17
0x0.service
Normal 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
|
Loading…
Reference in New Issue
Block a user