systemd: simplify walls-bot-rs service

This commit is contained in:
Harsh Shandilya 2022-07-08 12:48:32 +05:30
parent 781320644a
commit 3892a47658
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
1 changed files with 2 additions and 7 deletions

View File

@ -10,22 +10,17 @@ WorkingDirectory=/home/bot
EnvironmentFile=/home/bot/walls-bot.config
ExecStart=/usr/bin/walls-bot-rs
ExecReload=/bin/kill -USR1 $MAINPID
ReadOnlyDirectories=/var/www/dl.msfjarvis.dev/.walls
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
KillSignal=SIGINT
TimeoutStopSec=10s
# Security
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native
[Install]