The systemd service for app-admin/hddtemp does not work properly. It has to be of type 'forking' and the options environment variable for using /etc/conf.d/hddtemp is wrong, too (HDDTEMP_OPTIONS instead of HDDTEMP_OPTS). Reproducible: Always I suggest the change of the service section to: [Service] Type=forking EnvironmentFile=/etc/conf.d/hddtemp ExecStart=/usr/sbin/hddtemp -d $HDDTEMP_OPTS $HDDTEMP_DRIVES
Var names are wrong, indeed. Unless Pacho has some remarks, I'll apply your solution.
This needs a bit more additional work: 1. Try to avoid forking (will need to check hddtemp options for seeing if one let us avoid that) 2. Stop relying on conf.d file (you can see latest ntp ebuild about how it's passing options) We can take care of it (but, in my case, probably not until Saturday or Sunday)
(In reply to Pacho Ramos from comment #2) > We can take care of it (but, in my case, probably not until Saturday or > Sunday) Ok, please take. I am not into that systemd stuff and I am not going to have much time until Saturday, too.
Thanks! Time is not pressing here since my patched service works fine :). BTW: I could not find a switch for suppressing the fork.
+*hddtemp-0.3_beta15-r24 (28 Sep 2013) +*hddtemp-0.3_beta15-r7 (28 Sep 2013) + + 28 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/hddtemp.service-r1, + +files/hddtemp.service.conf, +hddtemp-0.3_beta15-r24.ebuild, + +hddtemp-0.3_beta15-r7.ebuild: + Fix unit file (#485924 by Tilo Prütz) +