NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Restart services after upgrade

On Sat, Dec 11, 2010 at 08:17:24AM -0500, Greg Troxel wrote:
> Besides what Aleksej suggested, one could have 'make replace', or
> really in the modern world 'pkg_add -U' know about rc.d scripts and
> do the equivalent of
> /etc/rc.d/foo forcestatus # before upgrade
> if status=running /etc/rc.d/foo forcerestart # after

If you only want to ignore the rc.conf setting, it's better to use
"onerestart" instead of "forcerestart", to not ignore other conditions
that could block a restart (missing conf files, depenencies, etc).


Geert Hendrickx  -=-  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!

Home | Main Index | Thread Index | Old Index