net-firewall/iptables should provide systemd unit file for the nscd daemon. Reproducible: Always
Should only be done whith the nscd USE.
*** This bug has been marked as a duplicate of bug 479490 ***
This is not a dublicate, but a typo in comment 0 :)
(In reply to Charles Nérot from comment #0) > net-firewall/iptables should provide systemd unit file for the nscd daemon. > > Reproducible: Always Title is good but description is ko. Same comment without Typo : sys-libs/glibc should provide systemd unit file for the nscd daemon.
Created attachment 355778 [details] /usr/lib/systemd/system/nscd.service
Created attachment 355780 [details] /etc/tmpfiles.d/nscd.tmpfiles.conf
(In reply to Charles Nérot from comment #5) > Created attachment 355778 [details] > /usr/lib/systemd/system/nscd.service This doesn't work for me. In my system (with glibc-2.15-r3, the current stable), /usr/sbin/nscd doesn't understand the -F flag.
Created attachment 355842 [details] nscd.service from arch This is the nscd.service unit file from arch. It does work correctly in my system. Additionally, it supports reloading the service.
(In reply to Charles Nérot from comment #6) > Created attachment 355780 [details] > /etc/tmpfiles.d/nscd.tmpfiles.conf This should be installed as /usr/lib/systemd/system/nscd.service, not in /etc
(In reply to redneb from comment #9) > (In reply to Charles Nérot from comment #6) > > Created attachment 355780 [details] > > /etc/tmpfiles.d/nscd.tmpfiles.conf > > This should be installed as /usr/lib/systemd/system/nscd.service, not in /etc Sorry, I meant /usr/lib/tmpfiles.d/nscd.conf
This will probably take some time as: 1. I cannot update to test if it works with latest testing version (I usually commit for the latest and only backport if needed). 2. glibc ebuilds are a bit different than current ebuilds as phases are defined outside them. Also, since it's so central to the system, I want to be cautious
A diff for the ebuild would be interesting (I am new to the "eblit-run" stuff :/)
(In reply to redneb from comment #8) > Created attachment 355842 [details] > nscd.service from arch > > This is the nscd.service unit file from arch. It does work correctly in my > system. Additionally, it supports reloading the service. "After=syslog.target" is deprecated and not recommended to use, >=glibc-2.16 ships nscd that understand "-F" option.
Created attachment 359120 [details, diff] glibc-2.16.0.ebuild.patch
Created attachment 359122 [details] nscd.service
(In reply to Alexander Tsoy from comment #14) > Created attachment 359120 [details, diff] [details, diff] > glibc-2.16.0.ebuild.patch Or may be place systemd unit for >=glibc-2.16 (with "-F" option) in "${FILESDIR}"/2.16 and unit for earlier versions in "${FILESDIR}"/2.10 if you plan to add systemd units for old glibcs.
Created attachment 359130 [details, diff] glibc-2.16.0.ebuild.patch added forgotten tmpfiles.d config =/
Thanks for the patch, will wait for toolchain maintainers to review if it's the way for doing that
Comment on attachment 359130 [details, diff] glibc-2.16.0.ebuild.patch i'd imagine you'd want to just add it to files/eblits/src_install.eblit
(In reply to SpanKY from comment #19) > Comment on attachment 359130 [details, diff] [details, diff] > glibc-2.16.0.ebuild.patch > > i'd imagine you'd want to just add it to files/eblits/src_install.eblit But, how should I inherit systemd eclass then? If I add the call to systemd_dounit to src_install.eblit, it will fail if systemd.eclass isn't inherit by some ebuild
(In reply to Pacho Ramos from comment #20) you can do: if [[ $(type -t systemd_dounit) == "function" ]] ; then and then add the inherit to the versions you care about
+ 06 Oct 2013; Pacho Ramos <pacho@gentoo.org> +files/nscd.service, + +files/nscd.tmpfilesd, files/eblits/src_install.eblit, glibc-2.16.0.ebuild, + glibc-2.17.ebuild, glibc-2.18.ebuild: + Add unit file (#479496 by Alexander Tsoy, redneb, Charles Nérot and SpanKY) +