systemd: decomission everythang

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-24 16:42:19 +05:30
parent f81856d952
commit 140aba4e23
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
5 changed files with 1 additions and 137 deletions

View file

@ -1,31 +0,0 @@
[Unit]
Description=walls-bot-rs service
After=network.target
[Service]
Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/walls-bot-rs
ExecStartPre=/usr/bin/git pull origin develop
ExecStart=/home/bot/.cargo/bin/cargo run --release
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
# 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]
WantedBy=multi-user.target