summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPratyush Desai2025-06-13 04:06:45 +0530
committerPratyush Desai2025-06-16 03:08:11 +0530
commit42456fce67ce29696580c843a8741ff0c186ab6d (patch)
tree70d01aeeaa8a1523cbfe0f3c45ca3b6604dc83db
parent58b13912a735fc6b7ae3feebf03c862747553d52 (diff)
downloadsystem-42456fce67ce29696580c843a8741ff0c186ab6d.tar.gz
system-42456fce67ce29696580c843a8741ff0c186ab6d.tar.bz2
system-42456fce67ce29696580c843a8741ff0c186ab6d.zip
add duckbot (CloudBot) unit file.duckbot_unitfile
Fix formatting and add hardening variables Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
-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