From 784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4 Mon Sep 17 00:00:00 2001 From: Michael Yick Date: Mon, 27 Feb 2023 16:44:55 -0600 Subject: systemd file --- contrib/dilbert.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 contrib/dilbert.service (limited to 'contrib/dilbert.service') 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 -- cgit v1.2.3