server-config/systemd_units/mirror-bot-2.service
Harsh Shandilya 00463512d6
systemd: Remove usage limits
My processes are stable anyway

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-03 00:01:24 +05:30

21 lines
419 B
Desktop File

[Unit]
Description=Private mirror bot service
After=network.target
[Service]
Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/aria-telegram-mirror-bot-2
ExecStartPre=/usr/bin/env bash aria.sh
ExecStart=/usr/bin/npm start
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target