Date: Sat, 16 Apr 2011 01:11:24 +0700 (NOVST) From: Eugene Grosbein <eugen@grosbein.pp.ru> To: FreeBSD-gnats-submit@FreeBSD.org Cc: dougb@FreeBSD.org Subject: misc/156427: rcNG may start disabled service Message-ID: <201104151811.p3FIBOgd002959@grosbein.pp.ru> Resent-Message-ID: <201104151820.p3FIK82P090196@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156427 >Category: misc >Synopsis: rcNG may start disabled service >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 15 18:20:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-STABLE i386 >Organization: RDTC JSC >Environment: System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #21: Sat Apr 9 16:26:00 NOVST 2011 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV i386 >Description: For some services I prefer using service_enable="NO" in /etc/rc.conf and start them by other means when needed using "forcestart" feature. SVN r206686 and MFC r207797 broke this: now rc.subr at boot time starts disabled service if it is already started by other means ($rc_pid is not empty). So, the service sometimes get started twice that's not good for me. >How-To-Repeat: 1. Disable any installed service using servicename="NO" in /etc/rc.conf 2. Run it at boot time by another script (I need service be started or not depending on results of some local tests). 3. See it's started twice. >Fix: Mentioned change occured to make 'stop' work even if ${name}_enable is not set. The code should check whether it's started to 'stop'. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104151811.p3FIBOgd002959>