mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 23:50:31 +00:00
17 lines
300 B
SYSTEMD
17 lines
300 B
SYSTEMD
|
[Unit]
|
||
|
Description=My fastapi app
|
||
|
Requires=network.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
KillSignal=SIGQUIT
|
||
|
WorkingDirectory=/data/develop/stackhub/api
|
||
|
ExecStart=python3 uvicorn main:app --reload
|
||
|
Restart=always
|
||
|
Type=notify
|
||
|
NotifyAccess=all
|
||
|
StandardError=syslog
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|