It would be nice to have a systemd service file, since I want to run it system wide. Reproducible: Always Steps to Reproduce: 1. emerge znc 2. systemctl start znc Actual Results: Fails Expected Results: Succeeds
Created attachment 381284 [details] Systemd service file for znc - Respects value of ZNC_CONF from /etc/conf.d/znc. - "User=znc" is hardcoded, because I could not make it use the value from the environment file. - Service file is tested and works.
Created attachment 381468 [details, diff] Systemd service file for znc Add "-f" to start flags to prevent forking: $ znc -h [ ** ] USAGE: znc [options] [ ** ] Options are: [ ** ] -h, --help List available command line options (this page) [ ** ] -v, --version Output version information and exit [ ** ] -f, --foreground Don't fork into the background [ ** ] -D, --debug Output debugging information (Implies -f) [ ** ] -n, --no-color Don't use escape sequences in the output [ ** ] -r, --allow-root Don't complain if ZNC is run as root [ ** ] -c, --makeconf Interactively create a new config [ ** ] -s, --makepass Generates a password for use in config [ ** ] -p, --makepem Generates a pemfile for use with SSL [ ** ] -d, --datadir Set a different ZNC repository (default is ~/.znc)
Looks like upstream already provides a service unit: https://github.com/znc/znc/blob/master/znc.service
+*znc-1.4-r1 (25 Jul 2014) + + 25 Jul 2014; Pacho Ramos <pacho@gentoo.org> +znc-1.4-r1.ebuild: + Toggle configure option to install unit file (#517728 by Konstantin) +