summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/dilbert.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/dilbert.service b/contrib/dilbert.service
new file mode 100644
index 0000000..53feacb
--- /dev/null
+++ b/contrib/dilbert.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=dilbertRss
+After=syslog.target
+After=network.target
+
+[Service]
+Type=simple
+
+# set user and group
+User=dilbert
+Group=dilbert
+
+# configure location
+WorkingDirectory=/home/dilbert/dilbertRss/
+ExecStart=uvicorn main:app --port 8866
+
+Restart=always
+RestartSec=15
+
+[Install]
+WantedBy=multi-user.target