Restarting daemons after portupgrade/portmanager
m.seaman at infracaninophile.co.uk
Sat Jul 25 08:24:37 UTC 2009
> Hello! I have a question concerning port upgrades.
> mysql51-server stops automatically during upgrade (using portupgrade or
> portmanager), and is properly started again based on a AFTERINSTALL
> setting in pktools.conf.
> So far, so good. But what about the other daemons that still seem to run
> after upgrade (Apache, Courier IMAP etc)? Are the new version running
> fine after the upgrade, or should I set AFTERINSTALL to do a restart of
> these daemons, to make sure they run the upgraded version?
No -- the sample AFTERINSTALL stuff in pkgtools.conf will run any RC
scripts the package installs to try and start those services. This will
have no effect if:
* The daemon is already running
* There's no foo_enable="yes" setting in /etc/rc.conf or equivalent.
So daemons like mysql or slapd that get shutdown during the process of
updating the port will be restarted, but daemons like apache or snmpd
that don't get shutdown will still be running the old version and you'll
have to restart them manually, as you will have to configure and start
anything newly installed.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090725/c2a38514/signature.pgp
More information about the freebsd-questions