Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2011 22:31:36 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/etc rc.subr
Message-ID:  <201104172231.p3HMVoWQ054655@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dougb       2011-04-17 22:31:36 UTC

  FreeBSD src repository

  Modified files:
    etc                  rc.subr 
  Log:
  SVN rev 220760 on 2011-04-17 22:31:36Z by dougb
  
  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. [1]
  
  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.
  
  PR:             conf/156427 [1]
  Submitted by:   Eugene Grosbein <eugen@grosbein.pp.ru> [1]
  
  Revision  Changes    Path
  1.107     +2 -1      src/etc/rc.subr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104172231.p3HMVoWQ054655>