mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Replace root user with %i, append --reload
This commit is contained in:
parent
95acd497df
commit
edc3a421ca
@ -3,12 +3,13 @@ Description=raspap-restapi
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=%i
|
||||||
WorkingDirectory=/etc/raspap/api
|
WorkingDirectory=/etc/raspap/api
|
||||||
LimitNOFILE=4096
|
LimitNOFILE=4096
|
||||||
ExecStart=/usr/bin/python3 -m uvicorn main:app --host 0.0.0.0 --port 8081
|
ExecStart=/usr/bin/python3 -m uvicorn main:app --host 0.0.0.0 --port 8081 --reload
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user