From owner-freebsd-rc@FreeBSD.ORG Mon Oct 16 11:08:36 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCF0E16A580 for ; Mon, 16 Oct 2006 11:08:36 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5512743D62 for ; Mon, 16 Oct 2006 11:08:36 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9GB8amk028285 for ; Mon, 16 Oct 2006 11:08:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9GB8ZqT028281 for freebsd-rc@FreeBSD.org; Mon, 16 Oct 2006 11:08:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Oct 2006 11:08:35 GMT Message-Id: <200610161108.k9GB8ZqT028281@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 16 Oct 2006 11:08:37 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/48881 rc [PATCH] The influence of /etc/start_ifname on /etc/rc. o conf/98734 rc [patch] /etc/rc.subr restart_postcmd is failing start_ o conf/98758 rc [patch] Templatize 'jail_fstab' in /etc/rc.d/jail o conf/98846 rc [patch] Templatize 'jail_rootdir' in /etc/rc.d/jail o bin/104044 rc [patch] rc.d/cleartmp works incorrectly 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/45226 rc Fix for rc.network, ppp-user annoyance o conf/48870 rc [PATCH] rc.network: allow to cancel interface status d o conf/55916 rc [PATCH] ppp-user options o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/73677 rc [patch] add support for powernow states to power_profi o conf/74817 rc [patch] network.subr: fixed automatic configuration of o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/78906 rc [patch] Allow mixer_enable="NO" in rc.conf o conf/79196 rc [PATCH] configurable dummynet loading from /etc/rc.co o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/85363 rc syntax error in /etc/rc.d/devfs o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o conf/88913 rc [patch] wrapper support for rc.subr o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/89870 rc [patch] feature request to make netif verbose rc.conf o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/95162 rc [patch] Missing feature in rc.subr o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/96766 rc run_rc_command doesn't work for Python scripts o conf/97311 rc [patch] /etc/rc.d/ipfilter reload can load bad files o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/99595 rc [PATCH] /etc/rc.d/dhclient doesn't interact well with o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o bin/100287 rc /etc/rc.subr cannot deal properly with interpreted dae o conf/102700 rc [PATCH] Add encrypted /tmp support to GELI/GBDE rc.d s o conf/102722 rc kerberos5 server startupscript should use --detach o conf/102913 rc /etc/rc.d/named killall in jailed OS o conf/103486 rc [rc.d] [patch] rc.d/jail: mount fstab after devfs o conf/103489 rc [rc.d] [patch] named_chroot_autoupdate doesn't work in o conf/103976 rc rc.d/named restart failure o conf/104408 rc command not set in rc.d/isdnd, can't stop isdnd with t 32 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Oct 16 13:10:59 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 845B716A40F; Mon, 16 Oct 2006 13:10:59 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D973643D66; Mon, 16 Oct 2006 13:10:57 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (yar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9GDAvV8044247; Mon, 16 Oct 2006 13:10:57 GMT (envelope-from yar@freefall.freebsd.org) Received: (from yar@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9GDAvNh044243; Mon, 16 Oct 2006 13:10:57 GMT (envelope-from yar) Date: Mon, 16 Oct 2006 13:10:57 GMT From: Yar Tikhiy Message-Id: <200610161310.k9GDAvNh044243@freefall.freebsd.org> To: simon@comsys.ntu-kpi.kiev.ua, yar@FreeBSD.org, freebsd-rc@FreeBSD.org, yar@FreeBSD.org Cc: Subject: Re: bin/104044: [patch] rc.d/cleartmp works incorrectly 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, 16 Oct 2006 13:10:59 -0000 Synopsis: [patch] rc.d/cleartmp works incorrectly State-Changed-From-To: open->patched State-Changed-By: yar State-Changed-When: Mon Oct 16 13:09:21 UTC 2006 State-Changed-Why: The correct version has been committed to HEAD, MFC is due in 1 month. Responsible-Changed-From-To: freebsd-rc->yar Responsible-Changed-By: yar Responsible-Changed-When: Mon Oct 16 13:09:21 UTC 2006 Responsible-Changed-Why: The correct version has been committed to HEAD, MFC is due in 1 month. http://www.freebsd.org/cgi/query-pr.cgi?pr=104044 From owner-freebsd-rc@FreeBSD.ORG Mon Oct 16 13:19:09 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7169416A47C for ; Mon, 16 Oct 2006 13:19:09 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23DD843D6D for ; Mon, 16 Oct 2006 13:18:41 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k9GDIeq1052638 for ; Mon, 16 Oct 2006 17:18:40 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k9GDIeps052637 for freebsd-rc@freebsd.org; Mon, 16 Oct 2006 17:18:40 +0400 (MSD) (envelope-from yar) Date: Mon, 16 Oct 2006 17:18:39 +0400 From: Yar Tikhiy To: freebsd-rc@freebsd.org Message-ID: <20061016131839.GC49925@comp.chem.msu.su> References: <200610121040.k9CAeLB8080084@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610121040.k9CAeLB8080084@freefall.freebsd.org> User-Agent: Mutt/1.5.9i Subject: Re: bin/104044: [patch] rc.d/cleartmp works incorrectly 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, 16 Oct 2006 13:19:09 -0000 On Thu, Oct 12, 2006 at 10:40:21AM +0000, Andrey Simonenko wrote: > The following reply was made to PR bin/104044; it has been noted by GNATS. > > From: Andrey Simonenko > To: Yar Tikhiy > Cc: Florent Thoumie , bug-followup@freebsd.org > Subject: Re: bin/104044: [patch] rc.d/cleartmp works incorrectly > Date: Thu, 12 Oct 2006 13:36:29 +0300 > > On Tue, Oct 10, 2006 at 03:31:35PM +0400, Yar Tikhiy wrote: > > On Tue, Oct 10, 2006 at 02:34:43PM +0400, Yar Tikhiy wrote: > > > > > > > 2. Ignore error code from rm and always run find, that is > > > > use "rm ... ; find ..." instead of "rm ... && find ...": > > > > one can create many files with long names and rm will not > > > > be called because of "Argument list too long" error, so > > > > find should do all of the work. > > > > > > By the way, did you consider omitting the first rm at all and just > > > using "find ... -print0 | xargs -0 rm -rf" ? The first rm can be > > > an optimization as long as we use find with -exec. OTOH, xargs -0 > > > would buy us the same performance and robustness without hacks. > > > Both find and xargs should be available to cleartmp. Here's the > > > code. Note "type -d" omitted. > > > > > > if checkyesno ${rcvar1}; then > > > # This is not needed with mfs /tmp, but doesn't hurt anything. > > > echo "Clearing /tmp." > > > find -x /tmp/. ! -name . \ > > > ! \( -name lost+found -type d -user root \) \ > > > ! \( \( -name quota.user -or -name quota.group \) \ > > > -type f -user root \) \ > > > -prune -print0 | xargs -0 rm -rf > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > elif ... > > > > It seems we can use just "-delete" here. If run as root, find > > deletes entries with funny permissions or flags as well as rm does. > > BTW, find will descend into lost+found and delete its contents in > > both cases (rm w/ -prune, or -delete), which is good IMHO. JFTR: Using -delete was a stupid idea of mine. If we want to preserve lost+found and quota.* _only_ in /tmp itself, then we have to use "-prune -exec". The committed version doesn't use -delete. -- Yar From owner-freebsd-rc@FreeBSD.ORG Tue Oct 17 22:42:32 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA6A416A412; Tue, 17 Oct 2006 22:42:32 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50DB043DA8; Tue, 17 Oct 2006 22:42:19 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9HMgJok025771; Tue, 17 Oct 2006 22:42:19 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9HMgJkI025767; Tue, 17 Oct 2006 22:42:19 GMT (envelope-from linimon) Date: Tue, 17 Oct 2006 22:42:19 GMT From: Mark Linimon Message-Id: <200610172242.k9HMgJkI025767@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/104507: Add reload to rc.d/amd 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, 17 Oct 2006 22:42:32 -0000 Synopsis: Add reload to rc.d/amd Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Tue Oct 17 22:42:09 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=104507 From owner-freebsd-rc@FreeBSD.ORG Wed Oct 18 15:58:01 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA96316A407; Wed, 18 Oct 2006 15:58:01 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB93A43D7B; Wed, 18 Oct 2006 15:57:57 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from freefall.freebsd.org (flz@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9IFvvOI022188; Wed, 18 Oct 2006 15:57:57 GMT (envelope-from flz@freefall.freebsd.org) Received: (from flz@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9IFvvkY022184; Wed, 18 Oct 2006 15:57:57 GMT (envelope-from flz) Date: Wed, 18 Oct 2006 15:57:57 GMT From: Florent Thoumie Message-Id: <200610181557.k9IFvvkY022184@freefall.freebsd.org> To: rand@meridian-enviro.com, flz@FreeBSD.org, freebsd-rc@FreeBSD.org, flz@FreeBSD.org Cc: Subject: Re: conf/104507: Add reload to rc.d/amd 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, 18 Oct 2006 15:58:01 -0000 Synopsis: Add reload to rc.d/amd State-Changed-From-To: open->patched State-Changed-By: flz State-Changed-When: Wed Oct 18 15:57:19 UTC 2006 State-Changed-Why: Committed to HEAD, MFC after 3 days. Thanks! Responsible-Changed-From-To: freebsd-rc->flz Responsible-Changed-By: flz Responsible-Changed-When: Wed Oct 18 15:57:19 UTC 2006 Responsible-Changed-Why: Grab. http://www.freebsd.org/cgi/query-pr.cgi?pr=104507 From owner-freebsd-rc@FreeBSD.ORG Wed Oct 18 20:00:57 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E79916A417 for ; Wed, 18 Oct 2006 20:00:57 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C4643DB4 for ; Wed, 18 Oct 2006 20:00:53 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so242411uge for ; Wed, 18 Oct 2006 13:00:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mime-version:content-type:content-disposition; b=sasM8BiKwj4yBJD96VzQG78IKvEsksRfhp8BjzqkFHARb0VmfMrj2GBldjl9JBclBujp0daFqczq4ZF1plt2wXilKVkpp5JwAazsn7oeKTQi9POppjRSmZT54Zqn2aXwssBuAqx5Qi1OPGuR2pYW+J0JZl2Cs7mVGwmLRYDTl1w= Received: by 10.66.216.20 with SMTP id o20mr12464215ugg; Wed, 18 Oct 2006 13:00:50 -0700 (PDT) Received: from coyote.q.local ( [85.180.136.25]) by mx.google.com with ESMTP id b23sm1442326ugd.2006.10.18.13.00.49; Wed, 18 Oct 2006 13:00:50 -0700 (PDT) Date: Wed, 18 Oct 2006 22:00:49 +0200 From: Ulrich Spoerlein To: FreeBSD-gnats-submit@freebsd.org Message-ID: <20061018200049.GA69724@coyote.q.local> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline Cc: freebsd-rc@freebsd.org Subject: rc.d/nfsd needs special _find_processes function 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, 18 Oct 2006 20:00:57 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline >Submitter-Id: current-users >Originator: Ulrich Spoerlein >Organization: >Confidential: no >Synopsis: rc.d/nfsd needs special _find_processes function >Severity: non-critical >Priority: low >Category: conf >Class: sw-bug >Release: FreeBSD 6.2-PRERELEASE i386 >Environment: >Description: When running multiple nfsd processes, there is one master process and several slave processes. As soon as the master process receives a SIGUSR1 all nfsd will terminate. This results in a race condition when shutting down nfsd. The kill signal is not send to a list of PIDs, but a list of PIDs is iterated and kill(1) called for every PID. As soon as the kill-loop hits the master nfsd, all subsequent kills will go to stale PIDs eventually killing of other innocent processes. >How-To-Repeat: Crank up the number of processes to make it more obvious: nfs_server_enable="YES" nfs_server_flags="-u -t -n 64" run /etc/rc.d/nfsd start and /etc/rc.d/nfsd stop. You will most probably see several errors from kill. Check $? >Fix: This is only a proof of concept as I'm not sure if this should be kludged into rc.subr or if we should provide a minimal override in rc.d/nfsd. You might wanna diff the two functions to see what I did. (Change _fp_args, extend the if test to if-master-and-same-jailid). --- nfsd.diff begins here --- --- nfsd 2006-10-18 11:15:50.000000000 +0200 +++ nfsd.new 2006-10-18 11:15:47.000000000 +0200 @@ -44,4 +44,42 @@ return 0 } +# Overwrite the _find_processes() function. We are only interested in the +# nfsd master process. Only this one should get the kill signal. + +_find_processes() +{ + if [ $# -ne 3 ]; then + err 3 'USAGE: _find_processes procname interpreter psargs' + fi + _procname=$1 + _interpreter=$2 + _psargs=$3 + + _pref= + _procnamebn=${_procname##*/} + _fp_args='_arg0 _argv _x' + _fp_match='case "$_arg0" in + $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' + + _proccheck=' + ps 2>/dev/null -o "pid,jid,command" '"$_psargs"' | + while read _npid _jid '"$_fp_args"'; do + case "$_npid" in + PID) + continue;; + esac; '"$_fp_match"' + if [ "$_argv" = "master" -a "$JID" -eq "$_jid" ]; + then echo -n "$_pref$_npid"; + _pref=" "; + fi + ;; + esac + done' + +# debug "in _find_processes: proccheck is ($_proccheck)." + eval $_proccheck +} + + run_rc_command "$1" --- nfsd.diff ends here --- --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="nfsd.diff" --- nfsd 2006-10-18 11:15:50.000000000 +0200 +++ nfsd.new 2006-10-18 11:15:47.000000000 +0200 @@ -44,4 +44,42 @@ return 0 } +# Overwrite the _find_processes() function. We are only interested in the +# nfsd master process. Only this one should get the kill signal. + +_find_processes() +{ + if [ $# -ne 3 ]; then + err 3 'USAGE: _find_processes procname interpreter psargs' + fi + _procname=$1 + _interpreter=$2 + _psargs=$3 + + _pref= + _procnamebn=${_procname##*/} + _fp_args='_arg0 _argv _x' + _fp_match='case "$_arg0" in + $_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")' + + _proccheck=' + ps 2>/dev/null -o "pid,jid,command" '"$_psargs"' | + while read _npid _jid '"$_fp_args"'; do + case "$_npid" in + PID) + continue;; + esac; '"$_fp_match"' + if [ "$_argv" = "master" -a "$JID" -eq "$_jid" ]; + then echo -n "$_pref$_npid"; + _pref=" "; + fi + ;; + esac + done' + +# debug "in _find_processes: proccheck is ($_proccheck)." + eval $_proccheck +} + + run_rc_command "$1" --h31gzZEtNLTqOjlF-- From owner-freebsd-rc@FreeBSD.ORG Wed Oct 18 20:26:51 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CB1616A40F; Wed, 18 Oct 2006 20:26:51 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9FE443D49; Wed, 18 Oct 2006 20:26:50 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9IKQoEx046338; Wed, 18 Oct 2006 20:26:50 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9IKQoXs046334; Wed, 18 Oct 2006 20:26:50 GMT (envelope-from linimon) Date: Wed, 18 Oct 2006 20:26:50 GMT From: Mark Linimon Message-Id: <200610182026.k9IKQoXs046334@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/104549: [patch] rc.d/nfsd needs special _find_processes function 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, 18 Oct 2006 20:26:51 -0000 Old Synopsis: rc.d/nfsd needs special _find_processes function New Synopsis: [patch] rc.d/nfsd needs special _find_processes function Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Wed Oct 18 20:26:33 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=104549 From owner-freebsd-rc@FreeBSD.ORG Thu Oct 19 12:48:19 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895DF16A412; Thu, 19 Oct 2006 12:48:19 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05EDC43D64; Thu, 19 Oct 2006 12:48:18 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 90A87598D; Thu, 19 Oct 2006 14:48:17 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 14BE79E6C2; Thu, 19 Oct 2006 12:49:08 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id F2291405B; Thu, 19 Oct 2006 14:49:07 +0200 (CEST) Date: Thu, 19 Oct 2006 14:49:07 +0200 From: Jeremie Le Hen To: Cheng-Lung Sung Message-ID: <20061019124907.GH53114@obiwan.tataz.chchile.org> References: <20061013033408.GA30695@FreeBSD.csie.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061013033408.GA30695@FreeBSD.csie.nctu.edu.tw> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-current@freebsd.org, freebsd-rc@FreeBSD.org Subject: Re: [fbsd] Re: conf/102913: /etc/rc.d/named killall in jailed OS 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: Thu, 19 Oct 2006 12:48:19 -0000 Hi, this mail about jailed named(8) is a good opportunity to remind about two PRs I have submitted to run a chrooted named(8) inside a jail: http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/103486 http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/103489 Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-rc@FreeBSD.ORG Thu Oct 19 14:34:52 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F76816A412 for ; Thu, 19 Oct 2006 14:34:52 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9455E43DAC for ; Thu, 19 Oct 2006 14:33:36 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from smtp.xbsd.org (unknown [82.233.2.192]) by smtp5-g19.free.fr (Postfix) with ESMTP id E0DC62747D for ; Thu, 19 Oct 2006 16:33:35 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 535ED119F3 for ; Thu, 19 Oct 2006 16:33:33 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03575-01 for ; Thu, 19 Oct 2006 16:33:26 +0200 (CEST) Received: from [193.95.134.156] (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id E51EB119EE for ; Thu, 19 Oct 2006 16:33:25 +0200 (CEST) From: Florent Thoumie To: freebsd-rc@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-kVB4a+8VQZ0B43p/B7k0" Date: Thu, 19 Oct 2006 15:33:23 +0100 Message-Id: <1161268403.89897.1.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Subject: rcvar function in rc.subr 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: Thu, 19 Oct 2006 14:34:52 -0000 --=-kVB4a+8VQZ0B43p/B7k0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Does anybody have a clue why /etc/rc.d/foo rcvar prints a leading '$' before the variable name? Doesn't make much sense with /bin/sh. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-kVB4a+8VQZ0B43p/B7k0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBFN4yzMxEkbVFH3PQRAorMAJ0RcfdSVaWG9uXM5zXTZQJvBZ1oiACfaV9y OiBkyQQrEsibfS2MLf9+Qkw= =A8di -----END PGP SIGNATURE----- --=-kVB4a+8VQZ0B43p/B7k0-- From owner-freebsd-rc@FreeBSD.ORG Thu Oct 19 18:11:36 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB0F016A4C2 for ; Thu, 19 Oct 2006 18:11:36 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (hood.oook.cz [195.250.137.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id B37DF43D7D for ; Thu, 19 Oct 2006 18:10:34 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from ikaros.oook.cz (localhost [127.0.0.1]) by hood.oook.cz (8.13.8/8.13.8) with ESMTP id k9JIAWnu059041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 19 Oct 2006 20:10:32 +0200 (CEST) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by ikaros.oook.cz (8.13.8/8.13.8/Submit) id k9JIAWg2059040 for freebsd-rc@FreeBSD.org; Thu, 19 Oct 2006 20:10:32 +0200 (CEST) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: ikaros.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: freebsd-rc@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ohOmE06V6bqnoixaTj42" Date: Thu, 19 Oct 2006 20:10:31 +0200 Message-Id: <1161281431.56486.13.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 FreeBSD GNOME Team Port Cc: Subject: fsck talk X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org 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: Thu, 19 Oct 2006 18:11:37 -0000 --=-ohOmE06V6bqnoixaTj42 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I was poking around /etc/rc.d/fsck today, and I figured out a few interesting things. Think three large partitions, for example: /dev/aacd0s1e /a /dev/aacd1s1e /b /dev/aacd2s1e /c Now, disable background fsck and enable -y flag in rc.conf: background_fsck=3D"NO" fsck_y_enable=3D"YES" Now imagine a power failure. On reboot, fsck -p manages to mark /a and /b clean, but fails on /c. Next, fsck -y is executed, which goes over /a again, then over /b and then finally over /c. Two problems here: 1) fsck -y does not skip filesystems already cleaned in preen run, because fsck_ffs only skips clean filesystems in preen mode. 2) fsck -y runs forever, because fsck does execute the jobs in parallel only in preen mode. Proposed solutions to problem 1: - change the behaviour of fsck_ffs when executed on clean filesystem, like this: fsck -y /a to skip it with message 'already clean'. There is a -f flag for people who really want to do a fsck. - add a new flag to fsck_ffs that will skip clean filesystems in non-preen mode Plus - when user sets fsck_y_enable, we can just skip the preen run entirely, under the condition that one of the above was implemented. That's another speedup. Proposed solutions to problem 2: - change fsck to parallelize jobs in non-preen mode by default - add a flag to fsck to parallelize jobs in non-preen mode Comments? --=20 Pav Lucistnik The hottest spot in the solar system is neither Mercury, Venus, nor St. Louis in the summer. -- WUSTL Press Release --=-ohOmE06V6bqnoixaTj42 Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFN7+XntdYP8FOsoIRAoTFAJ0Rns+SqOB4EWvaPhwPRGNJzAHuUgCgmlYH JV3O6vweEI790Gji+kF5gOE= =Rd3i -----END PGP SIGNATURE----- --=-ohOmE06V6bqnoixaTj42-- From owner-freebsd-rc@FreeBSD.ORG Sat Oct 21 17:24:42 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1329316A412; Sat, 21 Oct 2006 17:24:42 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B37643D5A; Sat, 21 Oct 2006 17:24:41 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9LHOfhV090182; Sat, 21 Oct 2006 17:24:41 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9LHOfZN090178; Sat, 21 Oct 2006 17:24:41 GMT (envelope-from linimon) Date: Sat, 21 Oct 2006 17:24:41 GMT From: Mark Linimon Message-Id: <200610211724.k9LHOfZN090178@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp 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: Sat, 21 Oct 2006 17:24:42 -0000 Synopsis: "rc.d/ppp restart" stops all instances of ppp Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Sat Oct 21 17:23:55 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=104623