update systemd unit file

This commit is contained in:
Joe Ardent 2024-03-31 14:18:42 -07:00
parent 25c9ebcbef
commit 1617eae174
1 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,18 @@
[Unit]
Description=Hitman
After=network.target
After=network.target network-online.target
Requires=network-online.target
[Service]
ExecStart=%h/hitman/hitman -e %h/hitman/.env
Type=exec
User=hitman
Group=hitman
ExecStart=/var/lib/hitman/hitman -e /var/lib/hitman/.env
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target