portupgrade and daemons.

Thomas-Martin Seck tmseck-lists at netcologne.de
Sun May 23 06:54:07 PDT 2004


* Josef Karthauser <joe at freebsd.org> [gmane.os.freebsd.devel.ports]:

> A number of ports run daemons, such as postfix, which are started in
> /usr/local/tc/rc.d.  Portupgrade doesn't appear to know anything about
> these, and so it will quite happily attempt to upgrade a daemon that is
> still running.  Idealally it ought to DTRT, which I guess is some
> combination of shutdow the existing port down, upgrade it and then
> restart it.  There are some rudiments of knowledge about rc.d/ scripts
> built into the Mk subsystem so I wonder whether it's possible to hook
> into that in some way.

Why don't you use portupgrade(1)'s BEFOREDEINSTALL and AFTERINSTALL
facilities? I don't think this problem can ever be handled correctly by
the port since not everyone likes the idea that a freshly installed
daemon is being started automatically without getting a chance to
customize the configuration. "Do what I mean" is hard to implement after
all...


More information about the freebsd-ports mailing list