]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit - etc/rc.subr
MFC r220760:
authordougb <dougb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Apr 2011 23:44:25 +0000 (23:44 +0000)
committerdougb <dougb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Apr 2011 23:44:25 +0000 (23:44 +0000)
commit2aa2b766643d85728fac77050409e8c50aecea5f
tree6ed2bf1d6084673d517fb6eb9a2e2103d0cd77e7
parentb18236f3756bc0eb2ed9d5b94552d2a78f83175c
MFC r220760:

The change in r206686 to allow the stop argument to work for a service
that is running even though not _enable'd had an annoying side effect.
If the service was already started at boot time by another means when
the related script came around again in rcorder it would start again,
regardless of _enable, because there was a valid pid.

So, split the test into 2 parts, one for (!rcvar && !stop), and one
for (stop && !valid_pid). This preserves the behavior from r206686
while preventing the undesired side effect.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/rc.subr