summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--systemd/duckbot.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/systemd/duckbot.service b/systemd/duckbot.service
new file mode 100644
index 0000000..fca274d
--- /dev/null
+++ b/systemd/duckbot.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=CloudBot (duckbot)
+After=network.target
+
+[Service]
+Type=simple
+WorkingDirectory=/opt/duckbot/CloudBot
+ExecStart=/opt/duckbot/venv/bin/python -m cloudbot
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+User=duckbot
+Group=duckbot
+SyslogIdentifier=duckbot
+ProtectSystem=strict
+ProtectHome=yes
+NoNewPrivileges=true
+ReadWritePaths=/opt/duckbot/CloudBot
+
+[Install]
+WantedBy=multi-user.target