summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Yick <cavemanon@mail.snootgame.xyz>2023-02-27 16:44:55 -0600
committerMichael Yick <cavemanon@mail.snootgame.xyz>2023-02-27 16:44:55 -0600
commit784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4 (patch)
treebc5dccf19e30ad598012633d5aa035ebbac7c29b
parentb6a3264cc18fec0df3598e769c038410e3646720 (diff)
downloaddilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.tar.gz
dilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.tar.bz2
dilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.zip
systemd filev1.0.0
-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