On 12.11.2012 13:34, Arnaud Quette wrote: > 2012/11/11 Laurent Bigonville <bigon@debian.org> >> Le Sun, 11 Nov 2012 19:07:46 +0100, >> Julien Cristau <jcristau@debian.org> a écrit : >>> On Sat, Sep 29, 2012 at 21:12:09 +0200, Laurent Bigonville wrote: >>> >>>> Le Sat, 29 Sep 2012 20:56:11 +0200, >>>> Julien Cristau <jcristau@debian.org> a écrit : >>>>> + if [ -d /var/run/nut ] ; then >>>>> + chown root:nut /var/run/nut >>>>> + chmod 770 /var/run/nut >>>>> + fi >>>>> >>>>> why does the nut user need write access there? And why is this >>>>> created in postinst instead of an init script? >>>> >>>> nut should be able to create sockets in that directory. >>>> >>>> This is probably a bit redundant as this is also done in the >>>> initscript. >>>> >>> Then I'd prefer to not have it in postinst. >> >> Well this was a copy/paste of the nut-server postinstall script, so >> this should also be removed from that file too. Do you want me to do >> that for wheezy? > > > right, that's part of the legacy (dead) code, prior to the volatile /var > move. > good to remove, since it's addressed in the sysV initscript. > the question will probably pop-up again with systemd though! On the chance that this is getting OT: For systemd you would ship a tmpfiles [1] snippet like /usr/lib/tmpfiles.d/nut.conf containing d /var/run/nut 0770 nut nut - - This would automatically create the run time directory during boot. Tollef and I are of the opinion this might be useful also for non-systemd systems and for jessie we'd like to propose that as a general approach to create run time directories. Cheers, Michael [1] http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature