On 12/09/2010 07:46:02, Ion-Mihai Tetcu wrote: > And you can't really know if it's a new install or an upgrade.
An app like portmaster or portupgrade would be able to know that. It's an oddity of the ports/pkg system that because 'upgrade' is implemented as 'delete' followed by 'install' that there is difficulty in making that distinction. In fact, portupgrade has a nifty feature you can enable which causes it to run '/usr/local/etc/rc.d/foo start' for any rc scripts installed by a port it is working on. Which is almost, but not quite, exactly what is wanted; it should issue 'restart' for services already running, or 'start' for services stopped during the upgrade process. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature