add duckbot (CloudBot) unit file. #15

Open
pratyush wants to merge 1 commits from duckbot_unitfile into master

20
systemd/duckbot.service Normal file
View File

@ -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
pratyush marked this conversation as resolved Outdated
Outdated
Review

Does it need to read anything under /home? If not you can make it yes.

Does it need to read anything under /home? If not you can make it `yes`.
NoNewPrivileges=true
ReadWritePaths=/opt/duckbot/CloudBot
[Install]
WantedBy=multi-user.target