From owner-freebsd-rc@FreeBSD.ORG Mon May 16 11:07:13 2011 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 40F981065690 for ; Mon, 16 May 2011 11:07:13 +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 2D06F8FC08 for ; Mon, 16 May 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4GB7DXc071316 for ; Mon, 16 May 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4GB7CCc071314 for freebsd-rc@FreeBSD.org; Mon, 16 May 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 May 2011 11:07:12 GMT Message-Id: <201105161107.p4GB7CCc071314@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, 16 May 2011 11:07:14 -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/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/152784 rc services provide himself instead providing class of se o conf/151063 rc [rc.subr] Verify network link and packet flow before s o conf/150752 rc [rc.subr] [patch] be not needed to eval $_pidcmd on re o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu 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/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.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] 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/128299 rc [patch] /etc/rc.d/geli does not mount partitions using 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 p 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/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a 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 92 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon May 16 12:53:48 2011 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 4C94B106566C; Mon, 16 May 2011 12:53:48 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id 272858FC08; Mon, 16 May 2011 12:53:47 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id B90A55C3B; Mon, 16 May 2011 08:37:31 -0400 (EDT) Date: Mon, 16 May 2011 08:37:31 -0400 From: Wesley Shields To: freebsd-rc@FreeBSD.org Message-ID: <20110516123731.GA78801@atarininja.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: hrs@FreeBSD.org Subject: RC status cleanup, attempt #2. 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 May 2011 12:53:48 -0000 Either this slipped off hrs@ radar or he's been busy with other things. In any case, I'm looking for someone with a src bit to commit [1]. It's a simple patch, shouldn't take more than a couple of seconds. Thanks! [1]: http://people.freebsd.org/~wxs/rc-status-cleanup.diff -- WXS From owner-freebsd-rc@FreeBSD.ORG Tue May 17 07:57:03 2011 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 EBB851065676; Tue, 17 May 2011 07:57:03 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.vlsi.ee.noda.tus.ac.jp (sekine00.ee.noda.sut.ac.jp [133.31.107.40]) by mx1.freebsd.org (Postfix) with ESMTP id 704F98FC13; Tue, 17 May 2011 07:57:02 +0000 (UTC) Received: from alph.allbsd.org (p2237-ipbf904funabasi.chiba.ocn.ne.jp [122.26.37.237]) (user=hrs mech=DIGEST-MD5 bits=128) by mail.vlsi.ee.noda.tus.ac.jp (8.14.4/8.14.4) with ESMTP id p4H7enWa058662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 May 2011 16:41:00 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id p4H7ecRE097535; Tue, 17 May 2011 16:40:39 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 17 May 2011 16:40:24 +0900 (JST) Message-Id: <20110517.164024.494466695672214244.hrs@allbsd.org> To: wxs@FreeBSD.org From: Hiroki Sato In-Reply-To: <20110516123731.GA78801@atarininja.org> References: <20110516123731.GA78801@atarininja.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_May_17_16_40_24_2011_457)--" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.5 (mail.vlsi.ee.noda.tus.ac.jp [133.31.107.40]); Tue, 17 May 2011 16:41:00 +0900 (JST) X-Spam-Status: No, score=6.1 required=14.0 tests=BAYES_50, CONTENT_TYPE_PRESENT, RCVD_IN_PBL, RCVD_IN_RP_RNBL, SPF_SOFTFAIL, X_MAILER_PRESENT autolearn=no version=3.3.1 X-Spam-Level: ****** X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.vlsi.ee.noda.tus.ac.jp Cc: freebsd-rc@FreeBSD.org Subject: Re: RC status cleanup, attempt #2. 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 May 2011 07:57:04 -0000 ----Security_Multipart(Tue_May_17_16_40_24_2011_457)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Wesley Shields wrote in <20110516123731.GA78801@atarininja.org>: wx> Either this slipped off hrs@ radar or he's been busy with other things. wx> In any case, I'm looking for someone with a src bit to commit [1]. It's wx> a simple patch, shouldn't take more than a couple of seconds. Thanks! Committed just now. Sorry for the delay... -- Hiroki ----Security_Multipart(Tue_May_17_16_40_24_2011_457)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk3SJmgACgkQTyzT2CeTzy2hXwCdHiqcoqdXw5gIOD6Nm4sqPzLc T7kAoNk6RMMa5Lz8BijTbPqSgid4jSdP =hOvt -----END PGP SIGNATURE----- ----Security_Multipart(Tue_May_17_16_40_24_2011_457)---- From owner-freebsd-rc@FreeBSD.ORG Tue May 17 14:45:02 2011 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 BD09A1065677; Tue, 17 May 2011 14:45:02 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mail.lysator.liu.se (unknown [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 416388FC13; Tue, 17 May 2011 14:45:02 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 622894002E; Tue, 17 May 2011 16:45:01 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 580344002D; Tue, 17 May 2011 16:45:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL,FAKE_REPLY_C, FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL autolearn=disabled version=3.3.1 X-Spam-Score: -0.1 Received: from mx.daemonic.se (h-90-99.A163.priv.bahnhof.se [79.136.90.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 1272440023; Tue, 17 May 2011 16:45:00 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id C8EB3119C04; Tue, 17 May 2011 16:45:00 +0200 (CEST) Received: from [IPv6:2001:470:dca9:1::4] (vivi.daemonic.se [IPv6:2001:470:dca9:1::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 81BB912B2DA; Tue, 17 May 2011 16:45:00 +0200 (CEST) Message-ID: <4DD289EB.4050908@gmail.com> Date: Tue, 17 May 2011 16:44:59 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: bug-followup@FreeBSD.org, hsn@sendmail.cz, freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: Re: conf/109272: [request] increase default rc shutdown timeout 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 May 2011 14:45:02 -0000 Does any of you rc people have any objections? If not, this can be changed. Regards! -- Niclas From owner-freebsd-rc@FreeBSD.ORG Tue May 17 15:15:21 2011 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 D4E84106566B; Tue, 17 May 2011 15:15:21 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AD6DB8FC1B; Tue, 17 May 2011 15:15:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4HFFLP5054691; Tue, 17 May 2011 15:15:21 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4HFFL5b054687; Tue, 17 May 2011 15:15:21 GMT (envelope-from eadler) Date: Tue, 17 May 2011 15:15:21 GMT Message-Id: <201105171515.p4HFFL5b054687@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: conf/109272: [request] increase default rc shutdown timeout 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 May 2011 15:15:21 -0000 Synopsis: [request] increase default rc shutdown timeout Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: eadler Responsible-Changed-When: Tue May 17 15:15:11 UTC 2011 Responsible-Changed-Why: This belongs to you http://www.freebsd.org/cgi/query-pr.cgi?pr=109272 From owner-freebsd-rc@FreeBSD.ORG Thu May 19 19:50:31 2011 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 D3FCC106566B for ; Thu, 19 May 2011 19:50:31 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 62BCD8FC14 for ; Thu, 19 May 2011 19:50:30 +0000 (UTC) Received: by bwz12 with SMTP id 12so3398269bwz.13 for ; Thu, 19 May 2011 12:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:from:date:message-id :subject:to:content-type; bh=45VG3aV5mY1WecmMt1j+XLBGWNKvnVobhMQegDD4kkI=; b=YWN/zetvobKzf0elutfx23bjRhqjlcuMx8qaGj/pOx4FS0YNTQkHjIlfnNdaZjefFk iPEJ498KCsFP7201KCX945rZ0qDWydMYNMfNpxoNLTEEeBJY++d9qFP340u5ZkOGbt2Z jbumwpSTQpHyCmDPb9JTLnSH8FpV0i27LAYaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; b=P4twXqWRoTwvGsy7IxcBzEEgTkGgXtgMVL50nHc2+3f3xMN4F6pSJBPRrgKCIWilF6 HZk/Ec5Dcf5IzW+MaMxA/i5BCjeJHlEVVoTEpxxowc145G0J7wDl09xtdxPjZ1O1tezX 9SCy59zUti8bytuIwQn4p7ss5gPuTEN4zkym0= Received: by 10.204.83.82 with SMTP id e18mr3204491bkl.71.1305832548319; Thu, 19 May 2011 12:15:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.65.198 with HTTP; Thu, 19 May 2011 12:15:18 -0700 (PDT) From: Chris Rees Date: Thu, 19 May 2011 20:15:18 +0100 Message-ID: To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: get_pidfile_from_conf usage X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com 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 May 2011 19:50:31 -0000 Hi all, I know it's been done to death recently, and there're examples in slim, but I'd just like some clarity here -- I'm sticking it into musicpd.in. Is it absolutely necessary to define a precmd and postcmd to get the pidfile, or can I just set prestart_cmd=find_pidfile && prestop_cmd=find_pidfile? How do I get status working properly; it doesn't look right in slim... Chris From owner-freebsd-rc@FreeBSD.ORG Fri May 20 16:39:51 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 848271065670 for ; Fri, 20 May 2011 16:39:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-5.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 817DA14DAB0; Fri, 20 May 2011 16:39:28 +0000 (UTC) Message-ID: <4DD6993F.3080709@FreeBSD.org> Date: Fri, 20 May 2011 09:39:27 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: utisoft@gmail.com References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: get_pidfile_from_conf usage 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: Fri, 20 May 2011 16:39:51 -0000 On 05/19/2011 12:15, Chris Rees wrote: > Hi all, > > I know it's been done to death recently, and there're examples in > slim, but I'd just like some clarity here -- I'm sticking it into musicpd.in. slim is a particularly odd/complex case due to the way that it is tied deeply to X. named and devd are simpler examples. > Is it absolutely necessary to define a precmd and postcmd to get the > pidfile, or can I just set prestart_cmd=find_pidfile&& > prestop_cmd=find_pidfile? It needs to be run in both start and stop _precmd because both need to know the pid file location. You need to test for the function's existence in ports because it won't be there for all systems we support for years yet. However, the feature has been MFC'ed so it will be in all of the next releases. You could use the find_pidfile method from slim, and if I understand what you're asking above, and you have no other start/stop _precmd you could do the following: start_precmd=find_pidfile stop_precmd=find_pidfile > How do I get status working properly; it doesn't look right in slim... Works fine for me: # service named status named is running as pid 1532. # service slim status slim is running as pid 1791. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Sat May 21 06:58:11 2011 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 2A1561065670; Sat, 21 May 2011 06:58:11 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 788208FC0A; Sat, 21 May 2011 06:58:10 +0000 (UTC) Received: by bwz12 with SMTP id 12so4935053bwz.13 for ; Fri, 20 May 2011 23:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=vI8XDOMLdi/oq6oeq3nuffXPK9oupBY/i7IO0XEDS9s=; b=qIvwmcX5ePXi6+pKegPiwQyKwQfbw4pnGO5ECSkmhkGjEh2eIGJWI+Orode8kQQBxl Ii+ztGrRGl+1Dnd//oWiwzJkO9gg5ztgVsKAORjVjZmQCOPE9Q8SokIhqLkI7FqvRu6F RfDrlvABu3kk4HQJxcd5WdpiGcBhfMUrDcUNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; b=vhwLQ0fq0qN3sx6QiKjJCCgHYcfcb0zSVKUz1SNV3bV7zTfrWmqJWPQJIvuMRjgEJ5 aFy+JNM92QLlcCnSbF1tOES2dGPYBufbh+BL5+XrcTx1e4yDB3ySAOx0sTdC0zTrmeLi NMJ+e+qNUpg3giK3xx0iVMHj16eifrb3Rar6s= Received: by 10.204.141.12 with SMTP id k12mr355635bku.44.1305961089088; Fri, 20 May 2011 23:58:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.205.65.198 with HTTP; Fri, 20 May 2011 23:57:39 -0700 (PDT) In-Reply-To: <4DD6993F.3080709@FreeBSD.org> References: <4DD6993F.3080709@FreeBSD.org> From: Chris Rees Date: Sat, 21 May 2011 07:57:39 +0100 Message-ID: To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-rc@freebsd.org Subject: Re: get_pidfile_from_conf usage X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com 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 May 2011 06:58:11 -0000 On 20 May 2011 17:39, Doug Barton wrote: > On 19/05/2011 12:15, Chris Rees wrote: >> >> Hi all, >> >> I know it's been done to death recently, and there're examples in >> slim, but I'd just like some clarity here -- I'm sticking it into >> musicpd.in. > > slim is a particularly odd/complex case due to the way that it is tied > deeply to X. named and devd are simpler examples. > >> Is it absolutely necessary to define a precmd and postcmd to get the >> pidfile, or can I just set prestart_cmd=find_pidfile&& >> prestop_cmd=find_pidfile? > > It needs to be run in both start and stop _precmd because both need to know > the pid file location. You need to test for the function's existence in > ports because it won't be there for all systems we support for years yet. > However, the feature has been MFC'ed so it will be in all of the next > releases. > > You could use the find_pidfile method from slim, and if I understand what > you're asking above, and you have no other start/stop _precmd you could do > the following: > > start_precmd=find_pidfile > stop_precmd=find_pidfile You have understood exactly what I was asking, thanks. > >> How do I get status working properly; it doesn't look right in slim... > > Works fine for me: > > # service named status > named is running as pid 1532. > > # service slim status > slim is running as pid 1791. Oh yes, I know it _works_, but it's ignorant of $pidfile. Is this OK? Chris From owner-freebsd-rc@FreeBSD.ORG Sat May 21 18:23:38 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 488821065674 for ; Sat, 21 May 2011 18:23:38 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-5.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 0FDE9164279; Sat, 21 May 2011 18:23:19 +0000 (UTC) Message-ID: <4DD80316.8050100@FreeBSD.org> Date: Sat, 21 May 2011 11:23:18 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: utisoft@gmail.com References: <4DD6993F.3080709@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org Subject: Re: get_pidfile_from_conf usage 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 May 2011 18:23:38 -0000 On 05/20/2011 23:57, Chris Rees wrote: > Oh yes, I know it_works_, but it's ignorant of $pidfile. Is this OK? If you're concerned, you can add status_precmd=musicpd_getpidfile. But if rc.subr doesn't know the value of $pidfile then it checks the process list for the command, so either way should be fine. Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/