After build netatalk.service is not correct and include string PIDFile=:PATH_NETATALK_LOCK: correct is PIDFile=/var/lock/netatalk Reproducible: Always Steps to Reproduce: 1.Install netatalk 3.0.5 --- netatalk-3.0.5.ebuild 2013-10-31 22:15:03.482737391 +0400 +++ netatalk-3.0.5.ebuild-new 2013-10-31 22:16:34.624811751 +0400 @@ -116,7 +116,8 @@ # The pamd file isn't what we need, use pamd_mimic_system rm -rf "${D}/etc/pam.d" pamd_mimic_system netatalk auth account password session - + sed -ie "s|:PATH_NETATALK_LOCK:|/var/lock/netatalk|g" \ + distrib/initscripts/service.systemd.tmpl sed \ -e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \ distrib/initscripts/service.systemd.tmpl \
I think the lock/PID file should be moved to /run/lock. I don't have a /var/lock, but I do have a /run/lock. /run/lock get wiped out during reboots, which is a plus. --- /usr/portage/net-fs/netatalk/netatalk-3.0.5.ebuild 2013-10-19 17:31:24.000000000 -0400 +++ netatalk-3.0.5-r1.ebuild 2013-11-01 17:08:41.121043485 -0400 @@ -100,6 +100,7 @@ --with-uams-path=/usr/$(get_libdir)/${PN} --disable-silent-rules --with-init-style=gentoo + --with-lockfile=/run/lock/${PN} ) autotools-utils_src_configure } @@ -120,6 +121,8 @@ sed \ -e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \ distrib/initscripts/service.systemd.tmpl \ + | sed \ + -e "s|:PATH_NETATALK_LOCK:|/run/lock/netatalk|g" \ > "${T}"/service.systemd || die systemd_newunit "${T}"/service.systemd ${PN}.service
you are right. I think it happens, because we are using the --with-init-style=gentoo and not --with-init-style=systemd. I will look into that.
+*netatalk-3.0.5-r1 (02 Nov 2013) + + 02 Nov 2013; Justin Lecher <jlec@gentoo.org> -netatalk-3.0.5.ebuild, + +netatalk-3.0.5-r1.ebuild: + Fix borked systemd unit, #489990 +
Thanks for the patches guys. Hopefully upstream will allow multiple init systems in parallel for the next version.