From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 01:41:57 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BC05106566B for ; Sun, 20 Dec 2009 01:41:57 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 2142B8FC13 for ; Sun, 20 Dec 2009 01:41:56 +0000 (UTC) Received: (qmail 13833 invoked by uid 399); 20 Dec 2009 01:41:56 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 01:41:56 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2D80E8.7000603@FreeBSD.org> Date: Sat, 19 Dec 2009 17:42:00 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: new service command X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 01:41:57 -0000 Howdy, The idea for a 'service' command was proposed on this list a long time ago (sorry, I don't remember by who), and at the time I was not supportive. However I decided to actually give it a try, and found that IMO it is actually quite useful. So, I've committed my version of the concept to HEAD. Take a look, give it a try, etc. etc. Comments and feedback are welcome. I'd like to get this MFC'ed prior to the 7.3 freeze unless there is some kind of objection. Enjoy, Doug -------- Original Message -------- Subject: svn commit: r200743 - in head/usr.sbin: . service Date: Sun, 20 Dec 2009 01:34:12 +0000 (UTC) Author: dougb Date: Sun Dec 20 01:34:12 2009 New Revision: 200743 URL: http://svn.freebsd.org/changeset/base/200743 Log: The service command is an easy interface to the rc.d system. Its primary purpose is to start and stop services provided by the rc.d scripts, however it can also be used to list the scripts using various criteria. -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 07:30:38 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CDEF1065670 for ; Sun, 20 Dec 2009 07:30:38 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE188FC14 for ; Sun, 20 Dec 2009 07:30:38 +0000 (UTC) Received: (qmail 18185 invoked by uid 399); 20 Dec 2009 07:30:37 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 07:30:37 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2DD2A1.8060907@FreeBSD.org> Date: Sat, 19 Dec 2009 23:30:41 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Hajimu UMEMOTO References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: multipart/mixed; boundary="------------020409080105060805010202" Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 07:30:38 -0000 This is a multi-part message in MIME format. --------------020409080105060805010202 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've reattached your original patch and included the freebsd-rc list. Hajimu UMEMOTO wrote: > Hi, > >>>>>> On Sat, 19 Dec 2009 21:51:13 -0800 >>>>>> Doug Barton said: > > dougb> Other than the removal of "exit $?" I'm not necessarily opposed to > dougb> that idea, but I'm wondering what value this change would have in the > dougb> "system is already up and running" case (when it will be executed) vs. > dougb> at boot time (such as in /etc/rc where the code is copied from). > > I don't just remove "exit $?". Since the script is kicked by "exec", > the return value from the script is returned to the process which > kicked service(8), directly. Good point, I did not read your patch carefully enough, sorry. > About the value this change, I think it should be same as the values > at boot time. I cannot imagine that someone want to restart the > system daemons under the user environment. I can actually, especially for ports. > Even if someone want to do > so, he still can kick /etc/rc.d/foo, directly. The point of adding a service(8) is to avoid needing to do that. :) > Further, it seems service(8) does similar thing on CentOS. I've already made one too-hasty comment on your suggestion, so I will take a step back and let other's chime in. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ --------------020409080105060805010202 Content-Type: text/plain; name="service-env.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="service-env.diff" Index: usr.sbin/service/service.sh diff -u usr.sbin/service/service.sh.orig usr.sbin/service/service.sh --- usr.sbin/service/service.sh.orig 2009-12-20 13:14:14.000000000 +0900 +++ usr.sbin/service/service.sh 2009-12-20 13:17:44.420246627 +0900 @@ -106,11 +106,15 @@ exit 1 fi +HOME=/ +PATH=/sbin:/bin:/usr/sbin:/usr/bin +export HOME PATH +cd $HOME + for dir in /etc/rc.d $local_startup; do if [ -x "$dir/$script" ]; then [ -n "$VERBOSE" ] && echo "$script is located in $dir" - $dir/$script $* - exit $? + exec env -i HOME=$HOME PATH=$PATH $dir/$script $* fi done --------------020409080105060805010202-- From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 09:32:05 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 509DD1065692; Sun, 20 Dec 2009 09:32:05 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from asuka.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 082888FC17; Sun, 20 Dec 2009 09:32:04 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:21b:d3ff:fe38:5381]) (user=ume mech=CRAM-MD5 bits=0) by asuka.mahoroba.org (8.14.3/8.14.3) with ESMTP/inet6 id nBK9Vu6T082261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Dec 2009 18:31:56 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 20 Dec 2009 18:31:56 +0900 Message-ID: From: Hajimu UMEMOTO To: Doug Barton In-Reply-To: <4B2DD2A1.8060907@FreeBSD.org> References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> User-Agent: xcite1.58> Wanderlust/2.15.7 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.7 Emacs/23.1 (i386-portbld-freebsd8.0) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.0-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (asuka.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 20 Dec 2009 18:31:56 +0900 (JST) X-Virus-Scanned: clamav-milter 0.95.3 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on asuka.mahoroba.org Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 09:32:05 -0000 Hi, >>>>> On Sat, 19 Dec 2009 23:30:41 -0800 >>>>> Doug Barton said: > About the value this change, I think it should be same as the values > at boot time. I cannot imagine that someone want to restart the > system daemons under the user environment. dougb> I can actually, especially for ports. Yup, I often do restart the services installed from ports, too. I meant that I don't want that the values of user environment are inherited to the services which is started from the user environment. > Even if someone want to do > so, he still can kick /etc/rc.d/foo, directly. dougb> The point of adding a service(8) is to avoid needing to do that. :) Yes, I hope so.:) The merit of using service(8) should be that there are more additional thing than just kicking /etc/rc.d/foo; don't inherit the values of user environment, IMO. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 11:58:47 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 03C58106566C; Sun, 20 Dec 2009 11:58:45 +0000 (UTC) (envelope-from nork@FreeBSD.org) Date: Sun, 20 Dec 2009 20:58:45 +0900 From: Norikatsu Shigemura To: Doug Barton Message-Id: <20091220205845.7de335cc.nork@FreeBSD.org> In-Reply-To: References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.4; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, freebsd-rc@freebsd.org, Hajimu UMEMOTO Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 11:58:47 -0000 On Sun, 20 Dec 2009 18:31:56 +0900 Hajimu UMEMOTO wrote: > > About the value this change, I think it should be same as the values > > at boot time. I cannot imagine that someone want to restart the > > system daemons under the user environment. > dougb> I can actually, especially for ports. > Yup, I often do restart the services installed from ports, too. > I meant that I don't want that the values of user environment are > inherited to the services which is started from the user environment. Yes, me too. I hope to restart daemons (installed from ports and/or system) like 'on boot'. > > Even if someone want to do > > so, he still can kick /etc/rc.d/foo, directly. > dougb> The point of adding a service(8) is to avoid needing to do that. :) > Yes, I hope so.:) > The merit of using service(8) should be that there are more additional > thing than just kicking /etc/rc.d/foo; don't inherit the values of > user environment, IMO. I always kick like 'cd /; env - HOME=/ PATH=$PATH /etc/rc.d/foo'. So I want service(8) like 'cd /; env - ...'. Thank you. From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 12:21:35 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAB2B106568D for ; Sun, 20 Dec 2009 12:21:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id F2E658FC08 for ; Sun, 20 Dec 2009 12:21:34 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nBKCAMwe061311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Dec 2009 14:10:22 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nBKCALIt006360; Sun, 20 Dec 2009 14:10:21 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nBKCAL38006359; Sun, 20 Dec 2009 14:10:21 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 20 Dec 2009 14:10:19 +0200 From: Kostik Belousov To: Hajimu UMEMOTO Message-ID: <20091220121019.GJ2170@deviant.kiev.zoral.com.ua> References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Rmm1Stw9KgbdL9/H" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, freebsd-rc@freebsd.org, svn-src-all@freebsd.org, Doug Barton , src-committers@freebsd.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 12:21:36 -0000 --Rmm1Stw9KgbdL9/H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 20, 2009 at 06:31:56PM +0900, Hajimu UMEMOTO wrote: > Hi, >=20 > >>>>> On Sat, 19 Dec 2009 23:30:41 -0800 > >>>>> Doug Barton said: >=20 > > About the value this change, I think it should be same as the values > > at boot time. I cannot imagine that someone want to restart the > > system daemons under the user environment.=20 >=20 > dougb> I can actually, especially for ports. >=20 > Yup, I often do restart the services installed from ports, too. > I meant that I don't want that the values of user environment are > inherited to the services which is started from the user environment. >=20 > > Even if someone want to do > > so, he still can kick /etc/rc.d/foo, directly. >=20 > dougb> The point of adding a service(8) is to avoid needing to do that. :) >=20 > Yes, I hope so.:) > The merit of using service(8) should be that there are more additional > thing than just kicking /etc/rc.d/foo; don't inherit the values of > user environment, IMO. I fully support this. I always have to do the env -u games with several variables, LANG in particular. --Rmm1Stw9KgbdL9/H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksuFCsACgkQC3+MBN1Mb4j08ACgqrCLjqWS/inGPsljwVK2F+us 0A0An2jZQ76655Dks2qbYr1XHECIH2uq =vdXH -----END PGP SIGNATURE----- --Rmm1Stw9KgbdL9/H-- From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 14:34:09 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C48F1106566C; Sun, 20 Dec 2009 14:34:09 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 84A438FC0A; Sun, 20 Dec 2009 14:34:09 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id DBC621DD413; Sun, 20 Dec 2009 15:34:08 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id C7B3B73FA1; Sun, 20 Dec 2009 15:34:08 +0100 (CET) Date: Sun, 20 Dec 2009 15:34:08 +0100 From: Jilles Tjoelker To: Doug Barton Message-ID: <20091220143408.GB46060@stack.nl> References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B2DD2A1.8060907@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org, Hajimu UMEMOTO Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 14:34:09 -0000 On Sat, Dec 19, 2009 at 11:30:41PM -0800, Doug Barton wrote: > Index: usr.sbin/service/service.sh > diff -u usr.sbin/service/service.sh.orig usr.sbin/service/service.sh > --- usr.sbin/service/service.sh.orig 2009-12-20 13:14:14.000000000 +0900 > +++ usr.sbin/service/service.sh 2009-12-20 13:17:44.420246627 +0900 > @@ -106,11 +106,15 @@ > exit 1 > fi > > +HOME=/ > +PATH=/sbin:/bin:/usr/sbin:/usr/bin > +export HOME PATH > +cd $HOME > + > for dir in /etc/rc.d $local_startup; do > if [ -x "$dir/$script" ]; then > [ -n "$VERBOSE" ] && echo "$script is located in $dir" > - $dir/$script $* > - exit $? > + exec env -i HOME=$HOME PATH=$PATH $dir/$script $* > fi > done The $* should be changed to "$@" here, to avoid inappropriate IFS splitting. (Even though rc.subr is broken in this way as well.) By the way, I agree with adding this utility. -- Jilles Tjoelker From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 14:36:24 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40C9D1065670 for ; Sun, 20 Dec 2009 14:36:24 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 08E2B8FC24 for ; Sun, 20 Dec 2009 14:36:24 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id 6ABE51DD413 for ; Sun, 20 Dec 2009 15:36:23 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id 51F3873F9F; Sun, 20 Dec 2009 15:36:23 +0100 (CET) Date: Sun, 20 Dec 2009 15:36:23 +0100 From: Jilles Tjoelker To: freebsd-rc@freebsd.org Message-ID: <20091220143623.GC46060@stack.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [PATCH] use pwait in wait_for_pids X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 14:36:24 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is a patch to use the new pwait utility in wait_for_pids. This patch still works if pwait is not available, using the old sleep method. The redirection on the pwait command serves to squelch "No such process" and "pwait: not found" errors. The braces are necessary to redirect the "not found" error even for sh(1) that doesn't have the fix in r197820 (which has not been MFC'ed). -- Jilles Tjoelker --VbJkn9YxBvnuCH5J-- From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 18:24:07 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 997DC106566C for ; Sun, 20 Dec 2009 18:24:07 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 590078FC18 for ; Sun, 20 Dec 2009 18:24:07 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id EDDD119E045; Sun, 20 Dec 2009 19:05:28 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id AA80419E044; Sun, 20 Dec 2009 19:05:26 +0100 (CET) Message-ID: <4B2E6766.60904@quip.cz> Date: Sun, 20 Dec 2009 19:05:26 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.6) Gecko/20091206 SeaMonkey/2.0.1 MIME-Version: 1.0 To: Doug Barton References: <4B2D80E8.7000603@FreeBSD.org> In-Reply-To: <4B2D80E8.7000603@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: new service command X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:24:07 -0000 Doug Barton wrote: > Howdy, > > The idea for a 'service' command was proposed on this list a long time > ago (sorry, I don't remember by who), maybe this thread http://lists.freebsd.org/pipermail/freebsd-ports/2009-June/055189.html > and at the time I was not > supportive. However I decided to actually give it a try, and found > that IMO it is actually quite useful. So, I've committed my version of > the concept to HEAD. > > Take a look, give it a try, etc. etc. Comments and feedback are > welcome. I'd like to get this MFC'ed prior to the 7.3 freeze unless > there is some kind of objection. I have something similar on my ToDo list with one improvement (not implemented yet). I want to be able to distinguish between start/stop called by user and start/stop command called by system startup process. What it can be used for? E.g: if I have some monitoring system trying to restart Apache if it spontaneously dies, but I don't want to restart it if Apache (or any other service) was stopped by user, until (re)started again by user or reboot of the system. Do you thing it can be useful to more people and implemented in your 'service' command or is it better not to implement it to the base tools? Miroslav Lachman From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 18:51:33 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D69F1106566B; Sun, 20 Dec 2009 18:51:33 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 88D408FC13; Sun, 20 Dec 2009 18:51:33 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id nBKIZJDg065480; Sun, 20 Dec 2009 12:35:19 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id nBKIZJam065479; Sun, 20 Dec 2009 12:35:19 -0600 (CST) (envelope-from brooks) Date: Sun, 20 Dec 2009 12:35:19 -0600 From: Brooks Davis To: Hajimu UMEMOTO Message-ID: <20091220183519.GB64667@lor.one-eyed-alien.net> References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bKyqfOwhbdpXa4YI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Sun, 20 Dec 2009 12:35:19 -0600 (CST) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, Doug Barton , freebsd-rc@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:51:33 -0000 --bKyqfOwhbdpXa4YI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 20, 2009 at 06:31:56PM +0900, Hajimu UMEMOTO wrote: > Hi, >=20 > >>>>> On Sat, 19 Dec 2009 23:30:41 -0800 > >>>>> Doug Barton said: >=20 > > About the value this change, I think it should be same as the values > > at boot time. I cannot imagine that someone want to restart the > > system daemons under the user environment.=20 >=20 > dougb> I can actually, especially for ports. >=20 > Yup, I often do restart the services installed from ports, too. > I meant that I don't want that the values of user environment are > inherited to the services which is started from the user environment. This is where the value of service(8) would lie for me. The ability to not have things work by accident due to my environment and then break at reboot would be be very helful. -- Brooks --bKyqfOwhbdpXa4YI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFLLm5nXY6L6fI4GtQRAsamAJ9Uc/eysoLMLu5gR20go7rttMNSBACeOlj0 ShlIyRT3bWXfI95LECx09wY= =YbaP -----END PGP SIGNATURE----- --bKyqfOwhbdpXa4YI-- From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 18:51:49 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 129631065670; Sun, 20 Dec 2009 18:51:49 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id DBDED8FC15; Sun, 20 Dec 2009 18:51:48 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 7619D46B2C; Sun, 20 Dec 2009 13:51:48 -0500 (EST) Date: Sun, 20 Dec 2009 18:51:48 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Brooks Davis In-Reply-To: <20091220183519.GB64667@lor.one-eyed-alien.net> Message-ID: References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> <20091220183519.GB64667@lor.one-eyed-alien.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Doug Barton , freebsd-rc@FreeBSD.org, Hajimu UMEMOTO , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-head@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:51:49 -0000 On Sun, 20 Dec 2009, Brooks Davis wrote: >>> About the value this change, I think it should be same as the values at >>> boot time. I cannot imagine that someone want to restart the system >>> daemons under the user environment. >> >> dougb> I can actually, especially for ports. >> >> Yup, I often do restart the services installed from ports, too. I meant >> that I don't want that the values of user environment are inherited to the >> services which is started from the user environment. > > This is where the value of service(8) would lie for me. The ability to not > have things work by accident due to my environment and then break at reboot > would be be very helful. There are several other types of context we've historically not properly set/restored when managing service state, such as: - Full user credential context (user IDs, group IDs, etc) - Additional login class state, such as resource limits and MAC labels - User audit state With Apple's launchd, service descriptions can include user credentials that will be set before the service is started. Being able to do that here as well would be great, especially in a future where part of our supplemental user credential will be additional system privileges. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 19:50:07 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA30C1065692 for ; Sun, 20 Dec 2009 19:50:07 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id E7A958FC12 for ; Sun, 20 Dec 2009 19:50:06 +0000 (UTC) Received: (qmail 31165 invoked by uid 399); 20 Dec 2009 19:50:06 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 19:50:06 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2E7FF2.1010603@FreeBSD.org> Date: Sun, 20 Dec 2009 11:50:10 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Jilles Tjoelker References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> <20091220143408.GB46060@stack.nl> In-Reply-To: <20091220143408.GB46060@stack.nl> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org, Hajimu UMEMOTO Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 19:50:07 -0000 Jilles Tjoelker wrote: >> + exec env -i HOME=$HOME PATH=$PATH $dir/$script $* >> fi >> done > > The $* should be changed to "$@" here, to avoid inappropriate IFS > splitting. (Even though rc.subr is broken in this way as well.) In concept I agree with you, however I want to remain bug-compatible with rc.subr, particularly in the light of the overwhelming response to make service(8) work just like things do at boot time. > By the way, I agree with adding this utility. Thank you. :) -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 20:10:52 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B98F1065693 for ; Sun, 20 Dec 2009 20:10:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id C19A18FC14 for ; Sun, 20 Dec 2009 20:10:51 +0000 (UTC) Received: (qmail 24714 invoked by uid 399); 20 Dec 2009 20:10:50 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 20:10:50 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2E84CF.2060902@FreeBSD.org> Date: Sun, 20 Dec 2009 12:10:55 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Hajimu UMEMOTO References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: multipart/mixed; boundary="------------060103070006030401020109" Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 20:10:52 -0000 This is a multi-part message in MIME format. --------------060103070006030401020109 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hajimu UMEMOTO wrote: > Yup, I often do restart the services installed from ports, too. > I meant that I don't want that the values of user environment are > inherited to the services which is started from the user environment. And I meant that I see the ability to start services AND inherit the user environment as a feature, however the people have spoken! :) I agree to making the change you suggested, but I would like to quibble over the format. Isn't the attached patch equivalent, and simpler? What is the value of setting HOME and PATH in the environment if we're just going to use 'env -i HOME PATH' anyway? Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ --------------060103070006030401020109 Content-Type: text/plain; name="service-env.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="service-env.diff" Index: service.8 =================================================================== --- service.8 (revision 200757) +++ service.8 (working copy) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 19, 2009 +.Dd December 20, 2009 .Dt service 8 .Os .Sh NAME @@ -44,7 +44,10 @@ .Nm command is an easy interface to the rc.d system. Its primary purpose is to start and stop services provided -by the rc.d scripts, however it can also be used to list +by the rc.d scripts. +When used for this purpose it will set the same restricted +environment that is in use at boot time (see below). +It can also be used to list the scripts using various criteria. .Pp The options are as follows: @@ -78,6 +81,20 @@ .It Fl v Be slightly more verbose .El +.Sh ENVIRONMENT +When used to run rc.d scripts the +.Nm +command sets +.Ev HOME +to +.Pa / +and +.Ev PATH +to +.Pa /sbin:/bin:/usr/sbin:/usr/bin +which is how they are set in +.Pa /etc/rc +at boot time. .Sh EXIT STATUS .Ex -std .Sh EXAMPLES Index: service.sh =================================================================== --- service.sh (revision 200757) +++ service.sh (working copy) @@ -106,11 +106,11 @@ exit 1 fi +cd / for dir in /etc/rc.d $local_startup; do if [ -x "$dir/$script" ]; then [ -n "$VERBOSE" ] && echo "$script is located in $dir" - $dir/$script $* - exit $? + exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $* fi done --------------060103070006030401020109-- From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 21:13:35 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB04D106568D for ; Sun, 20 Dec 2009 21:13:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3DF618FC17 for ; Sun, 20 Dec 2009 21:13:34 +0000 (UTC) Received: (qmail 9735 invoked by uid 399); 20 Dec 2009 21:13:34 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 21:13:34 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2E9382.1020400@FreeBSD.org> Date: Sun, 20 Dec 2009 13:13:38 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <4B2D80E8.7000603@FreeBSD.org> <4B2E6766.60904@quip.cz> In-Reply-To: <4B2E6766.60904@quip.cz> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org Subject: Re: new service command X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 21:13:35 -0000 Miroslav Lachman wrote: > I have something similar on my ToDo list with one improvement (not > implemented yet). I want to be able to distinguish between start/stop > called by user and start/stop command called by system startup process. The service(8) command will not be used by the system, so I'm not sure how this applies. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 21:25:34 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC0BB106566B for ; Sun, 20 Dec 2009 21:25:34 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4F08FC17 for ; Sun, 20 Dec 2009 21:25:34 +0000 (UTC) Received: (qmail 25480 invoked by uid 399); 20 Dec 2009 21:25:33 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 21:25:33 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2E9651.1090709@FreeBSD.org> Date: Sun, 20 Dec 2009 13:25:37 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Jilles Tjoelker References: <20091220143623.GC46060@stack.nl> In-Reply-To: <20091220143623.GC46060@stack.nl> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: [PATCH] use pwait in wait_for_pids X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 21:25:34 -0000 Jilles Tjoelker wrote: > Here is a patch to use the new pwait utility in wait_for_pids. ENOPATCH. :) I'm glad you got to this though, it's on my list but other issues have continually superseded it. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 21:31:00 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C11E81065693 for ; Sun, 20 Dec 2009 21:31:00 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4555D8FC31 for ; Sun, 20 Dec 2009 21:31:00 +0000 (UTC) Received: (qmail 2661 invoked by uid 399); 20 Dec 2009 21:30:59 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 20 Dec 2009 21:30:59 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2E9797.5000004@FreeBSD.org> Date: Sun, 20 Dec 2009 13:31:03 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Robert Watson References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> <20091220183519.GB64667@lor.one-eyed-alien.net> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Brooks Davis , freebsd-rc@FreeBSD.org, Hajimu UMEMOTO , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-head@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 21:31:00 -0000 Robert Watson wrote: > With Apple's launchd, service descriptions can include user credentials > that will be set before the service is started. Being able to do that > here as well would be great, especially in a future where part of our > supplemental user credential will be additional system privileges. I look forward to reviewing your patches to accomplish this. :) Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sun Dec 20 21:48:47 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2241A106566C for ; Sun, 20 Dec 2009 21:48:47 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id DE62C8FC15 for ; Sun, 20 Dec 2009 21:48:46 +0000 (UTC) Received: from toad.stack.nl (toad.stack.nl [IPv6:2001:610:1108:5010::135]) by mx1.stack.nl (Postfix) with ESMTP id 4374D1DD62C for ; Sun, 20 Dec 2009 22:48:46 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id 2B73073F9F; Sun, 20 Dec 2009 22:48:46 +0100 (CET) Date: Sun, 20 Dec 2009 22:48:46 +0100 From: Jilles Tjoelker To: freebsd-rc@freebsd.org Message-ID: <20091220214846.GA66977@stack.nl> References: <20091220143623.GC46060@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091220143623.GC46060@stack.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [PATCH] use pwait in wait_for_pids X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 21:48:47 -0000 On Sun, Dec 20, 2009 at 03:36:23PM +0100, Jilles Tjoelker wrote: > Here is a patch to use the new pwait utility in wait_for_pids. > This patch still works if pwait is not available, using the old sleep > method. > The redirection on the pwait command serves to squelch "No such process" > and "pwait: not found" errors. The braces are necessary to redirect the > "not found" error even for sh(1) that doesn't have the fix in r197820 > (which has not been MFC'ed). It seems the mailing list ate the patch (strange, text/x-diff attachments used to work), so I will put it inline here: Index: etc/rc.subr =================================================================== --- etc/rc.subr (revision 200442) +++ etc/rc.subr (working copy) @@ -390,7 +390,11 @@ _list=$_nlist echo -n ${_prefix:-"Waiting for PIDS: "}$_list _prefix=", " - sleep 2 + if { pwait $_list; } 2>/dev/null; then + break + else + sleep 2 + fi done if [ -n "$_prefix" ]; then echo "." -- Jilles Tjoelker From owner-freebsd-rc@FreeBSD.ORG Mon Dec 21 11:07:03 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C124106566C for ; Mon, 21 Dec 2009 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A22E8FC21 for ; Mon, 21 Dec 2009 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBLB73E5004199 for ; Mon, 21 Dec 2009 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBLB72ua004197 for freebsd-rc@FreeBSD.org; Mon, 21 Dec 2009 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Dec 2009 11:07:02 GMT Message-Id: <200912211107.nBLB72ua004197@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/141258 rc /etc/rc.d/tmp may act incorrectly based on unprivleged o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc] [patch] Making rc.firewall (workstation) IPv6 awa o conf/137629 rc [rc] background_dhclient rc.conf option causing double o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/130414 rc [patch] rc services started with onestart are not stop o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped o bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 64 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Dec 21 12:44:37 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20041065672; Mon, 21 Dec 2009 12:44:37 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from asuka.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7998FC15; Mon, 21 Dec 2009 12:44:37 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:21b:d3ff:fe38:5381]) (user=ume mech=CRAM-MD5 bits=0) by asuka.mahoroba.org (8.14.3/8.14.3) with ESMTP/inet6 id nBLCiRie093782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Dec 2009 21:44:27 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 21 Dec 2009 21:44:27 +0900 Message-ID: From: Hajimu UMEMOTO To: Doug Barton In-Reply-To: <4B2E84CF.2060902@FreeBSD.org> References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> <4B2E84CF.2060902@FreeBSD.org> User-Agent: xcite1.58> Wanderlust/2.15.7 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.7 Emacs/23.1 (i386-portbld-freebsd8.0) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 8.0-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (asuka.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Mon, 21 Dec 2009 21:44:28 +0900 (JST) X-Virus-Scanned: clamav-milter 0.95.3 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on asuka.mahoroba.org Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 12:44:38 -0000 Hi, >>>>> On Sun, 20 Dec 2009 12:10:55 -0800 >>>>> Doug Barton said: dougb> I agree to making the change you suggested, but I would like to dougb> quibble over the format. Isn't the attached patch equivalent, and dougb> simpler? What is the value of setting HOME and PATH in the environment dougb> if we're just going to use 'env -i HOME PATH' anyway? Yup, your attached patch is equivalent. However, I prefer the previous one. In anyway, I don't have a strong opinion around here. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ From owner-freebsd-rc@FreeBSD.ORG Mon Dec 21 20:34:22 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7000C10656A5 for ; Mon, 21 Dec 2009 20:34:22 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id F22528FC28 for ; Mon, 21 Dec 2009 20:34:21 +0000 (UTC) Received: (qmail 25627 invoked by uid 399); 21 Dec 2009 20:34:21 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 21 Dec 2009 20:34:21 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2FDBD1.7030808@FreeBSD.org> Date: Mon, 21 Dec 2009 12:34:25 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Hajimu UMEMOTO References: <200912200134.nBK1YCAA048942@svn.freebsd.org> <4B2DBB51.9060002@FreeBSD.org> <4B2DD2A1.8060907@FreeBSD.org> <4B2E84CF.2060902@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 20:34:22 -0000 Hajimu UMEMOTO wrote: >>>>>> On Sun, 20 Dec 2009 12:10:55 -0800 >>>>>> Doug Barton said: > > dougb> I agree to making the change you suggested, but I would like to > dougb> quibble over the format. Isn't the attached patch equivalent, and > dougb> simpler? What is the value of setting HOME and PATH in the environment > dougb> if we're just going to use 'env -i HOME PATH' anyway? > > Yup, your attached patch is equivalent. However, I prefer the > previous one. In anyway, I don't have a strong opinion around here. Thanks for confirming. My preference generally is for things to be simple and clear which makes them less confusing down the road. I've committed the patch I posted. Thanks again to everyone who offered their feedback. I'll wait a little longer before MFC'ing this, but I do want to get it in ASAP. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Mon Dec 21 21:04:52 2009 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 723231065679 for ; Mon, 21 Dec 2009 21:04:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 1BC0F8FC0C for ; Mon, 21 Dec 2009 21:04:52 +0000 (UTC) Received: (qmail 14610 invoked by uid 399); 21 Dec 2009 21:04:50 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 21 Dec 2009 21:04:50 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B2FE2E7.8080907@FreeBSD.org> Date: Mon, 21 Dec 2009 13:04:39 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: Jilles Tjoelker References: <20091220143623.GC46060@stack.nl> <20091220214846.GA66977@stack.nl> In-Reply-To: <20091220214846.GA66977@stack.nl> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: [PATCH] use pwait in wait_for_pids X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2009 21:04:52 -0000 Jilles Tjoelker wrote: > On Sun, Dec 20, 2009 at 03:36:23PM +0100, Jilles Tjoelker wrote: >> Here is a patch to use the new pwait utility in wait_for_pids. > >> This patch still works if pwait is not available, using the old sleep >> method. > >> The redirection on the pwait command serves to squelch "No such process" >> and "pwait: not found" errors. Well, "no such process" would be the result of a race (the thing exited in the microseconds between the 'kill -0' test right above this and actually executing pwait) but I agree we want to protect against it. I'd prefer we don't get a 'pwait: not found' error of course, but I think that optimizing for the common case (it's there and it works) is better in this context then testing for it first. >> The braces are necessary to redirect the >> "not found" error even for sh(1) that doesn't have the fix in r197820 >> (which has not been MFC'ed). Do you plan to MFC it? Personally I would rather wait to update rc.subr with simpler code, completely aside from the inherent value of the fix. It's far more likely that a user will have a base with an up-to-date /bin/sh and pwait and an rc.subr that lag behinds it than the other way around. > Index: etc/rc.subr > =================================================================== > --- etc/rc.subr (revision 200442) > +++ etc/rc.subr (working copy) > @@ -390,7 +390,11 @@ > _list=$_nlist > echo -n ${_prefix:-"Waiting for PIDS: "}$_list > _prefix=", " > - sleep 2 > + if { pwait $_list; } 2>/dev/null; then > + break > + else > + sleep 2 > + fi I would prefer to simplify this down to: pwait $_list 2>/dev/null || sleep 2 for a couple of reasons. First, well, it's simpler. :) Second while I have every confidence that the pwait code will work as advertised, I would prefer to run back through the loop "just in case." In terms of actual performance it will be a very minor pessimization, especially in the most common case where there is only one pid in the list. Does this sound reasonable? Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Tue Dec 22 04:10:30 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CFC41065670; Tue, 22 Dec 2009 04:10:30 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0418FC12; Tue, 22 Dec 2009 04:10:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id nBM48Ggl040937; Mon, 21 Dec 2009 21:08:17 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 21 Dec 2009 21:08:50 -0700 (MST) Message-Id: <20091221.210850.220301508585541755.imp@bsdimp.com> To: brooks@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <20091220183519.GB64667@lor.one-eyed-alien.net> References: <4B2DD2A1.8060907@FreeBSD.org> <20091220183519.GB64667@lor.one-eyed-alien.net> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: dougb@FreeBSD.org, freebsd-rc@FreeBSD.org, ume@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-head@FreeBSD.org Subject: Re: svn commit: r200743 - in head/usr.sbin: . service X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 04:10:30 -0000 In message: <20091220183519.GB64667@lor.one-eyed-alien.net> Brooks Davis writes: : On Sun, Dec 20, 2009 at 06:31:56PM +0900, Hajimu UMEMOTO wrote: : > Hi, : > : > >>>>> On Sat, 19 Dec 2009 23:30:41 -0800 : > >>>>> Doug Barton said: : > : > > About the value this change, I think it should be same as the values : > > at boot time. I cannot imagine that someone want to restart the : > > system daemons under the user environment. : > : > dougb> I can actually, especially for ports. : > : > Yup, I often do restart the services installed from ports, too. : > I meant that I don't want that the values of user environment are : > inherited to the services which is started from the user environment. : : This is where the value of service(8) would lie for me. The ability : to not have things work by accident due to my environment and then break : at reboot would be be very helful. I'd love to have some way to say 'If the daemon dies, please restart it. But don't be so eager about it that your attempts to keep it running interfere with things like service' Warner From owner-freebsd-rc@FreeBSD.ORG Wed Dec 23 01:22:36 2009 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6ABA1065697; Wed, 23 Dec 2009 01:22:36 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8DE498FC1E; Wed, 23 Dec 2009 01:22:36 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBN1MacH054092; Wed, 23 Dec 2009 01:22:36 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBN1Maia054088; Wed, 23 Dec 2009 01:22:36 GMT (envelope-from linimon) Date: Wed, 23 Dec 2009 01:22:36 GMT Message-Id: <200912230122.nBN1Maia054088@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/141907: [rc.d] Bug if mtu (maybe others?) is set as first argument in rc.conf(5) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 01:22:36 -0000 Old Synopsis: RC.D: Bug if mtu (maybe others?) is set as first argument in rc.conf New Synopsis: [rc.d] Bug if mtu (maybe others?) is set as first argument in rc.conf(5) Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Wed Dec 23 01:21:52 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=141907 From owner-freebsd-rc@FreeBSD.ORG Wed Dec 23 01:24:03 2009 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77E111065693; Wed, 23 Dec 2009 01:24:03 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDB48FC14; Wed, 23 Dec 2009 01:24:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBN1O3RG054149; Wed, 23 Dec 2009 01:24:03 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBN1O371054145; Wed, 23 Dec 2009 01:24:03 GMT (envelope-from linimon) Date: Wed, 23 Dec 2009 01:24:03 GMT Message-Id: <200912230124.nBN1O371054145@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/141909: [rc.subr] [patch] add rc.conf.d support to /usr/local X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 01:24:03 -0000 Old Synopsis: add rc.conf.d support to /usr/local New Synopsis: [rc.subr] [patch] add rc.conf.d support to /usr/local Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Wed Dec 23 01:23:35 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=141909