diff options
Diffstat (limited to 'hutch-notify.service')
| -rw-r--r-- | hutch-notify.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hutch-notify.service b/hutch-notify.service new file mode 100644 index 0000000..bb7060f --- /dev/null +++ b/hutch-notify.service @@ -0,0 +1,15 @@ +[Unit] +Description=Hutch Notify API +After=network.target + +[Service] +User=hutch +Group=hutch +WorkingDirectory=/opt/hutch-notify +EnvironmentFile=/opt/hutch-notify/.env +ExecStart=/opt/hutch-notify/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target |
