mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-13 20:37:02 +05:30

systemd now ignores 0 values for these. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
25 lines
470 B
Desktop File
25 lines
470 B
Desktop File
[Unit]
|
|
Description=Public mirror bot service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Restart=on-abort
|
|
Type=simple
|
|
User=bot
|
|
WorkingDirectory=/home/bot/aria-telegram-mirror-bot
|
|
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
|
|
CPUWeight=10
|
|
CPUQuota=10%
|
|
IOWeight=20
|
|
MemorySwapMax=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|