(Ab)using rcng's features to keep rc.d-style services running should they fail.

Xin LI delphij at delphij.net
Tue Oct 6 22:44:52 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wesley Shields wrote:
> On Sun, Oct 04, 2009 at 12:30:55PM -0700, Doug Barton wrote:
>> Alex Trull wrote:
>>> Hi all,
>>>
>>> I realised that because portupgrade/portmaster don't always 
>>> cleanly restart processes that have died due to being 
>>> upgraded (mysqld, often!) that this was something I wanted 
>>> to fix.
>> I can't speak to portupgrade, however for portmaster there is no such
>> facility whatsoever. The admin is expected to disable things prior to
>> an upgrade and re-enable them when the upgrade is done. I don't feel
>> that this is an overwhelming burden. :)
> 
> There is the @stopdaemon directive in plists (which gets translated into
> @unexec to forcestop the script). Some ports use it and some do not.
> Personally I think ports doing this automatically are quite annoying,
> and would love to rip them all out from the ports. Something like
> portmaster growing support for it would be welcome provided it does not
> happen by default.

+1

I think this feature should be user-controllable (or, the 'make install'
should be 'restart'ing the rc.d script at very least).

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkrLyFcACgkQi+vbBBjt66DZ5QCfU3LSI+RiZwJv3huFx4wd3QNe
UUsAn37vdhs30y+2eE/HLaw424CS7dMh
=1FW0
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list