[Pm-utils] Move pm/functions and hooks to /usr/lib or /usr/share

Michael Biebl mbiebl at gmail.com
Mon Mar 5 15:21:56 PST 2007


2007/3/5, Holger Macht <hmacht at suse.de>:
> On Mon 05. Mar - 22:38:57, Tim Dijkstra wrote:
> > Hi,
> >
> > This has come up before already, but without conclusion I think, so
> > here goes...
> >
> > I think (and the FHS with me) that /etc is the wrong place for
> > pm/functions and pm/hooks, etc. They are not supposed to be edited by the
> > sysadmin.
> >
> > A better place would be /usr/lib IMHO, the FHS:
> >
> >    /usr/lib includes object files, libraries, and internal binaries that
> >    are not intended to be executed directly by users or shell scripts.
> >
> > Some people would say /usr/share:
> >
> >   The /usr/share hierarchy is for all read-only architecture independent
> >   data files
> >
> > Apart from this, maybe we do want to allow the admin to install additional,
> > custom hooks in /etc/pm/hooks. Should these be executed before, after or
> > sorted in between the hooks form the packages, what do you think?
>
> Hm, the admin configures pm-utils below /etc/pm and puts additional hooks
> into /usr/lib/pm/...? What would be wrong with that?
>

I agree with Tim that /etc/pm/functions should be put into /usr/lib/pm.
The problem about the hooks is, that they are activated/deactivated
via the x-bit. It would be a bit odd to have to change the x bit of a
file in /usr/lib/pm.

Maybe using symlinks would be a better idea anyway, similar to /etc/init.d

Cheers,
Michael


More information about the Pm-utils mailing list