A user by the name of sokan reported to #znc on libera.chat that, ultimately, what they needed to do to get the ZNC service to run was replace ZNC_DATADIR="/var/lib/znc" with ZNC_DATADIR="/var/lib/znc/.znc"
Please include the package category and name in the bug summary.
Based on the message in pkg_postinst, /var/lib/znc is the correct location.
(In reply to Mike Gilbert from comment #2) > Based on the message in pkg_postinst, /var/lib/znc is the correct location. The message on pkg_postinst refers to /var/lib/znc indeed. The issue is that when a user runs "znc --makeconf", znc.conf is created in .znc/config/. Therefore ZNC_DATADIR should preferably point to "/var/lib/znc/.znc". In any case this comment here might prove useful to other user if they stumble on the same issue.
Created attachment 761461 [details] pastes relevant to this bug
(In reply to Dimitris Nakos (sokan) from comment #3) > (In reply to Mike Gilbert from comment #2) > > Based on the message in pkg_postinst, /var/lib/znc is the correct location. > > The message on pkg_postinst refers to /var/lib/znc indeed. The issue is that > when a user runs "znc --makeconf", znc.conf is created in .znc/config/. > Therefore ZNC_DATADIR should preferably point to "/var/lib/znc/.znc". > > In any case this comment here might prove useful to other user if they > stumble on the same issue. Hi, I think the postinst is pretty clear about when to run znc --makeconf manually ("To run znc as a user"): https://gitweb.gentoo.org/repo/gentoo.git/tree/net-irc/znc/files/README.gentoo-r1?id=f302ee221545dd442429c19dd3a21545df86be63 Users who wish to use the OpenRC or systemd services should rely on "emerge --config net-irc/znc". Feel free to send a patch/PR/comment if you have an idea of how I could improve the README but it feels pretty clear to me at the moment.