From 548ac2032c39686cf42e33a6b64e68f9d8124e8c Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Fri, 13 Jun 2025 04:06:45 +0530 Subject: [PATCH] add duckbot (CloudBot) unit file. Signed-off-by: Pratyush Desai --- systemd/duckbot.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 systemd/duckbot.service diff --git a/systemd/duckbot.service b/systemd/duckbot.service new file mode 100644 index 0000000..503812e --- /dev/null +++ b/systemd/duckbot.service @@ -0,0 +1,19 @@ +[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=read-only +ReadWritePaths=/opt/duckbot/CloudBot + +[Install] +WantedBy=multi-user.target