shell-things/etc/systemd/system/znc.service
Mikaela Suomalainen b16ae44601 Revert "services: remove unneeded pidfiles"
This reverts commit 98093edc99.

* * * * *

They aren't needed if systemd starts the service, but what if user
services are used together with cron and liching isn't allowed?
2015-07-07 10:10:10 +03:00

15 lines
256 B
Desktop File

[Unit]
Description=ZNC, an advanced IRC bouncer
After=network.target
[Service]
Type=forking
PIDFile=/home/znc/.znc/znc.pid
ExecStart=/home/znc/.local/bin/znc
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
User=znc
[Install]
WantedBy=multi-user.target