websoft9/deploy/stackhub.service
chendelin1982 5934db54ca init
2021-08-27 18:27:28 +08:00

16 lines
300 B
Desktop File

[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