add duckbot (CloudBot) unit file. #15
20
systemd/duckbot.service
Normal file
20
systemd/duckbot.service
Normal 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
|
|||||||
|
NoNewPrivileges=true
|
||||||
|
ReadWritePaths=/opt/duckbot/CloudBot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user
Does it need to read anything under /home? If not you can make it
yes
.