Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2004 16:47:42 +0100
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: rc.subr extensions
Message-ID:  <B1298869-3266-11D9-A7A8-00039312D914@fillmore-labs.com>
In-Reply-To: <20041109080124.GA59253@i2.informatik.rwth-aachen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Volker Stolz wrote:

> In gmane.os.freebsd.devel.ports, you wrote:
>> - define RC_FILES, which contain a list of all the files to be
>>   stored in /usr/local/etc/rc.d. This file may contain macros like
>>   %%LOCALBASE%% and %%RC_SUBR%%.
>
> Excellent! While we discussed this at the ports BOF at EuroBSDCon, it
> was suggested to have a knob for deciding whether to run
> "${RC_SCRIPT} restart" on updating a port -- it has to be configurable
> since the administrator might want fine-grained control. Any chance of
> adding this as sugar on top?

This might be a bad idea, because:

- a port might not run well when deinstalled (even when it does on the 
porters machine, it might fail in a different configuration)
   generally I think daemons should be terminated before deinstalling the 
port

- the configuration files might be incompatible with the new version

Generally, you can achieve this effect with portupgrade(1) (see 
BEFOREBUILD/AFTERINSTALL in pkgtools.conf(5)). What might be useful 
could be a `make start|stop|restart'.

-Oliver



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1298869-3266-11D9-A7A8-00039312D914>