diff options
author | Michael Yick <cavemanon@mail.snootgame.xyz> | 2023-02-27 16:44:55 -0600 |
---|---|---|
committer | Michael Yick <cavemanon@mail.snootgame.xyz> | 2023-02-27 16:44:55 -0600 |
commit | 784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4 (patch) | |
tree | bc5dccf19e30ad598012633d5aa035ebbac7c29b /contrib/dilbert.service | |
parent | b6a3264cc18fec0df3598e769c038410e3646720 (diff) | |
download | dilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.tar.gz dilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.tar.bz2 dilbertRss-784fe8b4e1fd6c8a9b9a03a0569dd5867ce4fbc4.zip |
systemd filev1.0.0
Diffstat (limited to 'contrib/dilbert.service')
-rw-r--r-- | contrib/dilbert.service | 21 |
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 |