diff --git a/etc/systemd/system/znc.service b/etc/systemd/system/znc.service new file mode 100644 index 00000000..7db72050 --- /dev/null +++ b/etc/systemd/system/znc.service @@ -0,0 +1,14 @@ +[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