Jilles Tjoelker 80fe6bcf09 rc.subr: Check for running daemons before a custom start_cmd is executed.
Currently rc scripts implementing their own start_cmd do not enjoy the
benefits of rc.subr's own check for rc_pid.

This leads to around a third of ports with such a start_cmd not to check for
the process at all and two thirds of ports to re-implement this check
(sometimes wrongly).

This patch moves the check for rc_pid to before ${rc_arg}_cmd is executed.

Submitted by:	Dirk Engling
Reviewed by:	feld
MFC after:	1 week
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D4156
2015-12-04 16:32:29 +00:00
..
2015-12-03 16:54:45 +00:00
2015-11-30 04:59:01 +00:00
2015-01-26 08:50:12 +00:00
2015-12-01 06:22:27 +00:00
2014-03-14 02:58:48 +00:00
2013-12-03 04:32:02 +00:00
rpc
2015-06-29 15:38:34 +00:00
2013-12-13 22:58:57 +00:00