From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 08:51:24 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3F0FC75E for ; Mon, 16 Sep 2013 08:51:24 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B24E82851 for ; Mon, 16 Sep 2013 08:51:23 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r8G8lfIj099387 for ; Mon, 16 Sep 2013 11:47:41 +0300 (EEST) Message-ID: <20130916114741.99386@relay.ibs.dn.ua> Date: Mon, 16 Sep 2013 11:47:41 +0300 From: "Zeus Panchenko" To: cc: Subject: rc dependencies ... Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.98; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko 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 Sep 2013 08:51:24 -0000 hi, please, help me to understand better scripts dependencies, how to make one rc script wait for other ... for my dhcpd configured with LDAP, I need to start /usr/local/etc/rc.d/isc-dhcpd only after /usr/local/etc/rc.d/slapd for what I edited /usr/local/etc/rc.d/isc-dhcpd --- isc-dhcpd~ 2013-08-31 15:45:32.202899511 +0300 +++ isc-dhcpd 2013-09-04 18:32:36.297221926 +0300 @@ -3,7 +3,7 @@ # $FreeBSD: branches/RELENG_9_1_0/net/isc-dhcp42-server/files/isc-dhcpd.in 300897 2012-07-14 14:29:18Z beat $ # # PROVIDE: dhcpd -# REQUIRE: DAEMON +# REQUIRE: DAEMON slapd # BEFORE: LOGIN # KEYWORD: shutdown # but after reboot, dhcpd still complains: Sep 16 10:02:41 bo20 dhcpd: Error: Cannot start TLS session to foo.bar:389: Can't contact LDAP server when launched by hands, /usr/local/etc/rc.d/isc-dhcpd starts normally so, where is my mistake, why is it not waiting for /usr/local/etc/rc.d/slapd ? -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 11:06:51 2013 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4EDD0C04 for ; Mon, 16 Sep 2013 11:06:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3A2402163 for ; Mon, 16 Sep 2013 11:06:51 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8GB6pRc089736 for ; Mon, 16 Sep 2013 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8GB6otK089734 for freebsd-rc@FreeBSD.org; Mon, 16 Sep 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Sep 2013 11:06:50 GMT Message-Id: <201309161106.r8GB6otK089734@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 Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 11:06:51 -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/181625 rc [patch] add rc.d/ script for freebsd-update o conf/180183 rc [rc.d] rc.d allows scripts without rcvar set to start o conf/179828 rc [rc.d] [PATCH] rc.d/syslogd link socket to /dev/log fa o conf/177217 rc [patch] rc.d/ddb -- squelch warning when ddb_enable=ye o conf/177089 rc ntpd startup script does not work well o conf/176347 rc [rc.conf] [patch] Add support for firewall deny lists o conf/176181 rc [rc.subr] rc.subr emitting warnings for non-defined xx o conf/175311 rc [patch] add "dump" fs type support to rc.d/dumpon o conf/175105 rc /etc/rc.d/* and more: syntax 'return_boolean_cmd && do o conf/175079 rc [rc.subr] [patch] rc.subr poorly handles recursive run o bin/173153 rc [rc.d] [patch] $netwait_ip should be more parallel o conf/172787 rc [rc.conf] FreeBSD 9.x broken alias syntax on vlan inte o conf/172532 rc [rc] [patch] service routing restart always fails o conf/169047 rc [rc.subr] [patch] /etc/rc.subr not checking some scrip p bin/168544 rc [patch] [rc]: addswap-mounted swapfiles cause panic on o conf/167566 rc [rc.d] [patch] ipdivert module loading vs. ipfw rc.d o o conf/166484 rc [rc] [patch] rc.initdiskless patch for different major o conf/165769 rc [rc][jai][ipv6] IPv6 Initialization on external iface o conf/164393 rc [rc.d] restarting netif with static addresses doesn't o conf/163508 rc [rc.subr] [patch] Add "enable" and "disable" commands o conf/163488 rc Confusing explanation in defaults/rc.conf o conf/163321 rc [rc.conf] [patch] allow _fib syntax in rc.conf o conf/162642 rc .sh scripts in /usr/local/etc/rc.d get executed, not s o conf/161107 rc [rc] stop_boot in mountcritlocal usage is incorrect. o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe 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/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/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con 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 a 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/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip p conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst 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/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped 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 a 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 f conf/118255 rc savecore never finding kernel core dumps (rcorder prob f conf/117935 rc [patch] ppp fails to start at boot because of missing f conf/113915 rc [ndis] [patch] ndis wireless driver fails to associate 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 f conf/105689 rc [ppp] [request] syslogd starts too late at boot f conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp f 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/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d f 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 a 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 a conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} f conf/56934 rc [patch] rc.firewall rules for natd expect an interface f conf/13775 rc multi-user boot may hang in NIS environment 90 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 18:10:22 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C779B6A1 for ; Mon, 16 Sep 2013 18:10:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6DC5D2193 for ; Mon, 16 Sep 2013 18:10:22 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r8GIAGQk078661 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 16 Sep 2013 19:10:17 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r8GIAGQk078661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1379355017; bh=ol6n62LNN0ikFVyNEACyM5c6hMvzV6+Jbh4AcAdJ1wo=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Mon,=2016=20Sep=202013=2019:10:16=20+0100|From:=20Matthew =20Seaman=20|To:=20Zeus=20Panchen ko=20|CC:=20freebsd-rc@freebsd.org|Subject:=20Re:= 20rc=20dependencies=20...|References:=20<20130916114741.99386@rela y.ibs.dn.ua>|In-Reply-To:=20<20130916114741.99386@relay.ibs.dn.ua> ; b=FkjbBF69P/jUbfQEp5uVZWcY3/DP7JTX2n68bXuOVWXpA8fBIngWZdp6oQ2w7wKq5 1slKZMbZs7TwiysuYwnRiWsh0Lyl6wr1h/CzcAODnco9p71in+YvvaBpPw3UsiHLg6 ea/gA5lTRfARw9mMc861Lv9MJFsu9kO/lIP7sphA= Message-ID: <52374988.7030901@infracaninophile.co.uk> Date: Mon, 16 Sep 2013 19:10:16 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Zeus Panchenko Subject: Re: rc dependencies ... References: <20130916114741.99386@relay.ibs.dn.ua> In-Reply-To: <20130916114741.99386@relay.ibs.dn.ua> X-Enigmail-Version: 1.5.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 18:10:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16/09/2013 09:47, Zeus Panchenko wrote: > hi, >=20 > please, help me to understand better scripts dependencies, how to make > one rc script wait for other ... >=20 > for my dhcpd configured with LDAP, I need to start=20 > /usr/local/etc/rc.d/isc-dhcpd=20 > only after=20 > /usr/local/etc/rc.d/slapd >=20 > for what I edited /usr/local/etc/rc.d/isc-dhcpd >=20 > --- isc-dhcpd~ 2013-08-31 15:45:32.202899511 +0300 > +++ isc-dhcpd 2013-09-04 18:32:36.297221926 +0300 > @@ -3,7 +3,7 @@ > # $FreeBSD: branches/RELENG_9_1_0/net/isc-dhcp42-server/files/isc-dhcp= d.in 300897 2012-07-14 14:29:18Z beat $ > # > # PROVIDE: dhcpd > -# REQUIRE: DAEMON > +# REQUIRE: DAEMON slapd > # BEFORE: LOGIN > # KEYWORD: shutdown > # >=20 > but after reboot, dhcpd still complains: > Sep 16 10:02:41 bo20 dhcpd: Error: Cannot start TLS session to foo.bar:= 389: Can't contact LDAP server >=20 > when launched by hands, /usr/local/etc/rc.d/isc-dhcpd starts normally >=20 >=20 > so, where is my mistake, why is it not waiting for /usr/local/etc/rc.d/= slapd ? >=20 You can force one daemon to start after another one without editing any of the existing RC scripts (likely to get blown away when you update that package) by adding an additional RC script like so: #!/bin/sh # # Make isc-dhcpd start after slapd # PROVIDE: precedence # REQUIRE: slapd # BEFORE: isc-dhcpd Test the resulting startup order by: rcorder /etc/rc.d/* /usr/local/etc/rc.d/* Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlI3SYgACgkQ8Mjk52CukIyWQACffoS8yP9LvCrC4DraskDf6AMr aMsAoIlfoFu0y36LnUNfQcBrzS8d/0VH =30X0 -----END PGP SIGNATURE----- --3DLc8ee0JhmvQaRu5erpkD6fm0KmxSRPm-- From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 19:37:58 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 212A5C3 for ; Mon, 16 Sep 2013 19:37:58 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 95EC427DE for ; Mon, 16 Sep 2013 19:37:57 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r8GJbrQV073557; Mon, 16 Sep 2013 22:37:54 +0300 (EEST) Message-ID: <20130916223753.73555@relay.ibs.dn.ua> Date: Mon, 16 Sep 2013 22:37:53 +0300 From: "Zeus Panchenko" To: "Matthew Seaman" Subject: Re: rc dependencies ... In-reply-to: Your message of Mon, 16 Sep 2013 19:10:16 +0100 <52374988.7030901@infracaninophile.co.uk> References: <20130916114741.99386@relay.ibs.dn.ua> <52374988.7030901@infracaninophile.co.uk> Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.98; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko 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 Sep 2013 19:37:58 -0000 thank you Mathew for soon reply, Matthew Seaman wrote: > ... > that package) by adding an additional RC script like so: > > #!/bin/sh > # > # Make isc-dhcpd start after slapd > > # PROVIDE: precedence > # REQUIRE: slapd > # BEFORE: isc-dhcpd I have added it :> cat /usr/local/etc/rc.d/1order #!/bin/sh # # Make isc-dhcpd start after slapd # PROVIDE: precedence # REQUIRE: slapd # BEFORE: isc-dhcpd > > Test the resulting startup order by: > rcorder /etc/rc.d/* /usr/local/etc/rc.d/* here the result: ... /etc/rc.d/yppasswdd /usr/local/etc/rc.d/isc-dhcpd /usr/local/etc/rc.d/isc-dhcpd6 /usr/local/etc/rc.d/svnserve /etc/rc.d/LOGIN /usr/local/etc/rc.d/tinyproxy /usr/local/etc/rc.d/svscan /usr/local/etc/rc.d/smartd /usr/local/etc/rc.d/slapd ... is it correct? -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 20:41:48 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A8D8D167 for ; Mon, 16 Sep 2013 20:41:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B0D02BF2 for ; Mon, 16 Sep 2013 20:41:48 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r8GKfh9G081730 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 16 Sep 2013 21:41:43 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r8GKfh9G081730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1379364104; bh=6eQhU1FjTbVjNBfLxcRaMJBAsFFf0F3QGW7adv5nG90=; h=Date:From:To:CC:Subject:References:In-Reply-To; z=Date:=20Mon,=2016=20Sep=202013=2021:41:35=20+0100|From:=20Matthew =20Seaman=20|To:=20Zeus=20Panchen ko=20|CC:=20freebsd-rc@freebsd.org|Subject:=20Re:= 20rc=20dependencies=20...|References:=20<20130916114741.99386@rela y.ibs.dn.ua>=20<52374988.7030901@infracaninophile.co.uk>=20<201309 16223753.73555@relay.ibs.dn.ua>|In-Reply-To:=20<20130916223753.735 55@relay.ibs.dn.ua>; b=fHuM3KoVuUwRUORLGUeKfbce7dlX53n60eQUqdPCrDVwYpL89KtwI/cwYTTb20C3I sAEtqRNxIJp/i3FX+OIlxP1+sIM2VVse3bZ8quBJr9OwmjkhwhE5Thf799SRPCDj+Y vC51PBKsG2GkgEw3z/uAMI0bq9Am/JBxgMMFTkps= Message-ID: <52376CFF.60009@infracaninophile.co.uk> Date: Mon, 16 Sep 2013 21:41:35 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Zeus Panchenko Subject: Re: rc dependencies ... References: <20130916114741.99386@relay.ibs.dn.ua> <52374988.7030901@infracaninophile.co.uk> <20130916223753.73555@relay.ibs.dn.ua> In-Reply-To: <20130916223753.73555@relay.ibs.dn.ua> X-Enigmail-Version: 1.5.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 20:41:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16/09/2013 20:37, Zeus Panchenko wrote: > thank you Mathew for soon reply, >=20 > Matthew Seaman wrote: >> ...=20 >> that package) by adding an additional RC script like so: >> >> #!/bin/sh >> # >> # Make isc-dhcpd start after slapd >> >> # PROVIDE: precedence >> # REQUIRE: slapd >> # BEFORE: isc-dhcpd >=20 > I have added it >=20 > :> cat /usr/local/etc/rc.d/1order > #!/bin/sh > # > # Make isc-dhcpd start after slapd >=20 > # PROVIDE: precedence > # REQUIRE: slapd > # BEFORE: isc-dhcpd >=20 >=20 >> >> Test the resulting startup order by: >> rcorder /etc/rc.d/* /usr/local/etc/rc.d/* >=20 > here the result: >=20 > ... > /etc/rc.d/yppasswdd > /usr/local/etc/rc.d/isc-dhcpd > /usr/local/etc/rc.d/isc-dhcpd6 > /usr/local/etc/rc.d/svnserve > /etc/rc.d/LOGIN > /usr/local/etc/rc.d/tinyproxy > /usr/local/etc/rc.d/svscan > /usr/local/etc/rc.d/smartd > /usr/local/etc/rc.d/slapd > ... >=20 >=20 > is it correct? Hmmm... doesn't look right. Check what the PROVIDES lines in isc-dhcpd [*] and slapd actually say -- usually they're the same as the name of the RC script. You need to use the PROVIDES token from those files as the term you match against for REQUIRE or BEFORE. Cheers, Matthew [*] It seems isc-dhcpd actually PROVIDES dhcpd rather than isc-dhcpd. My mistake. s/isc-dhcpd/dhcpd/g in your 1order script. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlI3bQcACgkQ8Mjk52CukIxKYwCdGkaJPboCijeZsHTER0RnQYS/ urcAn02AIePHj66NSkd5HNIdybRPLO5y =LdOo -----END PGP SIGNATURE----- --Ss0Smquvd2MUdBWTRTP1aTMGIdkn27OJD-- From owner-freebsd-rc@FreeBSD.ORG Mon Sep 16 21:49:05 2013 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B25359AE for ; Mon, 16 Sep 2013 21:49:05 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 949472175 for ; Mon, 16 Sep 2013 21:49:02 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r8GLn1K3081704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 16 Sep 2013 14:49:01 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r8GLn1Xr081703 for rc@FreeBSD.org; Mon, 16 Sep 2013 14:49:01 -0700 (PDT) (envelope-from jmg) Date: Mon, 16 Sep 2013 14:49:01 -0700 From: John-Mark Gurney To: rc@FreeBSD.org Subject: sendmail queue runner starting multiple times... Message-ID: <20130916214901.GE68682@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Mon, 16 Sep 2013 14:49:01 -0700 (PDT) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 21:49:05 -0000 I noticed that if you start sendmail, it doesn't detect that the mail queue runner is already running and starts it up multiple times... My proposed patch is: --- /usr/src/etc/rc.d/sendmail 2013-01-12 21:34:02.000000000 -0800 +++ /tmp/sendmail.rc 2013-09-16 14:45:21.000000000 -0700 @@ -93,7 +93,7 @@ name="sendmail_clientmqueue" rcvar="sendmail_msp_queue_enable" -start_cmd="${command} ${sendmail_msp_queue_flags}" pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" +start_cmd="[ -z \"`check_pidfile "${pidfile}" "${command}"`\" ] && ${command} ${sendmail_msp_queue_flags} && _run_rc_postcmd" required_files="/etc/mail/submit.cf" run_rc_command "$1" This is because setting start_cmd disables the pid checks, so we need to add them back... This patch won't print out the already running bit, but we also don't print out the fact that we are starting it, it doesn't seem like that big of a loss.. Is there a better way? If someone else doesn't produce a better patch, I'll get re's permission to commit in few days... Thanks. P.S. Please CC me, I'm not on the list. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 04:33:25 2013 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9628C978 for ; Tue, 17 Sep 2013 04:33:25 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E50DA2920 for ; Tue, 17 Sep 2013 04:33:24 +0000 (UTC) Received: from alph.d.allbsd.org (p4034-ipbf2106funabasi.chiba.ocn.ne.jp [114.148.167.34]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r8H4X7I9081106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Sep 2013 13:33:17 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.7/8.14.5) with ESMTP id r8H4X6pf045552; Tue, 17 Sep 2013 13:33:07 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 17 Sep 2013 13:32:39 +0900 (JST) Message-Id: <20130917.133239.1751419599170896640.hrs@allbsd.org> To: jmg@funkthat.com Subject: Re: sendmail queue runner starting multiple times... From: Hiroki Sato In-Reply-To: <20130916214901.GE68682@funkthat.com> References: <20130916214901.GE68682@funkthat.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Tue_Sep_17_13_32_39_2013_481)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Tue, 17 Sep 2013 13:33:17 +0900 (JST) X-Spam-Status: No, score=-92.3 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,RCVD_IN_PBL,RCVD_IN_RP_RNBL,SAMEHELOBY2HOP,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 04:33:25 -0000 ----Security_Multipart0(Tue_Sep_17_13_32_39_2013_481)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Sep_17_13_32_39_2013_565)--" Content-Transfer-Encoding: 7bit ----Next_Part(Tue_Sep_17_13_32_39_2013_565)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit John-Mark Gurney wrote in <20130916214901.GE68682@funkthat.com>: jm> I noticed that if you start sendmail, it doesn't detect that the jm> mail queue runner is already running and starts it up multiple times... jm> jm> My proposed patch is: jm> --- /usr/src/etc/rc.d/sendmail 2013-01-12 21:34:02.000000000 -0800 jm> +++ /tmp/sendmail.rc 2013-09-16 14:45:21.000000000 -0700 jm> @@ -93,7 +93,7 @@ jm> jm> name="sendmail_clientmqueue" jm> rcvar="sendmail_msp_queue_enable" jm> -start_cmd="${command} ${sendmail_msp_queue_flags}" jm> pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" jm> +start_cmd="[ -z \"`check_pidfile "${pidfile}" "${command}"`\" ] && ${command} ${sendmail_msp_queue_flags} && _run_rc_postcmd" jm> required_files="/etc/mail/submit.cf" jm> run_rc_command "$1" jm> jm> jm> This is because setting start_cmd disables the pid checks, so we need jm> to add them back... This patch won't print out the already running jm> bit, but we also don't print out the fact that we are starting it, it jm> doesn't seem like that big of a loss.. jm> jm> Is there a better way? If someone else doesn't produce a better patch, jm> I'll get re's permission to commit in few days... jm> jm> Thanks. jm> jm> P.S. Please CC me, I'm not on the list. Does the attached patch fix this issue? -- Hiroki ----Next_Part(Tue_Sep_17_13_32_39_2013_565)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rc_d_sendmail.20130916-1.diff" Index: etc/rc.d/sendmail =================================================================== --- etc/rc.d/sendmail (revision 255437) +++ etc/rc.d/sendmail (working copy) @@ -80,7 +80,6 @@ if checkyesno sendmail_submit_enable; then name="sendmail_submit" rcvar="sendmail_submit_enable" - start_cmd="${command} ${sendmail_submit_flags}" run_rc_command "$1" fi @@ -87,13 +86,11 @@ if checkyesno sendmail_outbound_enable; then name="sendmail_outbound" rcvar="sendmail_outbound_enable" - start_cmd="${command} ${sendmail_outbound_flags}" run_rc_command "$1" fi -name="sendmail_clientmqueue" +name="sendmail_msp_queue" rcvar="sendmail_msp_queue_enable" -start_cmd="${command} ${sendmail_msp_queue_flags}" -pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" +pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}" required_files="/etc/mail/submit.cf" run_rc_command "$1" ----Next_Part(Tue_Sep_17_13_32_39_2013_565)---- ----Security_Multipart0(Tue_Sep_17_13_32_39_2013_481)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlI322cACgkQTyzT2CeTzy17QgCfZZUl1KjA4S94sM4X3kRVuYzL fo4An1RZBLxOs8gyIsfYeDs2U4fpcFtV =pSi4 -----END PGP SIGNATURE----- ----Security_Multipart0(Tue_Sep_17_13_32_39_2013_481)---- From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 04:55:32 2013 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4722CCAA; Tue, 17 Sep 2013 04:55:32 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ECBE929FE; Tue, 17 Sep 2013 04:55:31 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r8H4tUnC087159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Sep 2013 21:55:30 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r8H4tUqe087158; Mon, 16 Sep 2013 21:55:30 -0700 (PDT) (envelope-from jmg) Date: Mon, 16 Sep 2013 21:55:30 -0700 From: John-Mark Gurney To: Hiroki Sato Subject: Re: sendmail queue runner starting multiple times... Message-ID: <20130917045530.GL68682@funkthat.com> References: <20130916214901.GE68682@funkthat.com> <20130917.133239.1751419599170896640.hrs@allbsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130917.133239.1751419599170896640.hrs@allbsd.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Mon, 16 Sep 2013 21:55:31 -0700 (PDT) Cc: rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 04:55:32 -0000 Hiroki Sato wrote this message on Tue, Sep 17, 2013 at 13:32 +0900: > John-Mark Gurney wrote > in <20130916214901.GE68682@funkthat.com>: > > jm> I noticed that if you start sendmail, it doesn't detect that the > jm> mail queue runner is already running and starts it up multiple times... > jm> > jm> My proposed patch is: > jm> --- /usr/src/etc/rc.d/sendmail 2013-01-12 21:34:02.000000000 -0800 > jm> +++ /tmp/sendmail.rc 2013-09-16 14:45:21.000000000 -0700 > jm> @@ -93,7 +93,7 @@ > jm> > jm> name="sendmail_clientmqueue" > jm> rcvar="sendmail_msp_queue_enable" > jm> -start_cmd="${command} ${sendmail_msp_queue_flags}" > jm> pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" > jm> +start_cmd="[ -z \"`check_pidfile "${pidfile}" "${command}"`\" ] && ${command} ${sendmail_msp_queue_flags} && _run_rc_postcmd" > jm> required_files="/etc/mail/submit.cf" > jm> run_rc_command "$1" > jm> > jm> > jm> This is because setting start_cmd disables the pid checks, so we need > jm> to add them back... This patch won't print out the already running > jm> bit, but we also don't print out the fact that we are starting it, it > jm> doesn't seem like that big of a loss.. > jm> > jm> Is there a better way? If someone else doesn't produce a better patch, > jm> I'll get re's permission to commit in few days... > jm> > jm> Thanks. > jm> > jm> P.S. Please CC me, I'm not on the list. > > Does the attached patch fix this issue? yes, it does, and gives me better messages... I only tested w/ sendmail_enable="YES" and the defaults, but it properly detected the queue runner running, doesn't start multiple copies, and kills the queue runner off properly... Thanks, do you want to take care of committing, or shall I? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 05:27:28 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0D6FD45B for ; Tue, 17 Sep 2013 05:27:28 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 835562B33 for ; Tue, 17 Sep 2013 05:27:26 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r8H5ROb1014619; Tue, 17 Sep 2013 08:27:24 +0300 (EEST) Message-ID: <20130917082724.14617@relay.ibs.dn.ua> Date: Tue, 17 Sep 2013 08:27:24 +0300 From: "Zeus Panchenko" To: "Matthew Seaman" Subject: Re: rc dependencies ... In-reply-to: Your message of Mon, 16 Sep 2013 21:41:35 +0100 <52376CFF.60009@infracaninophile.co.uk> References: <20130916114741.99386@relay.ibs.dn.ua> <52374988.7030901@infracaninophile.co.uk> <20130916223753.73555@relay.ibs.dn.ua> <52376CFF.60009@infracaninophile.co.uk> Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.98; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko 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 Sep 2013 05:27:28 -0000 Matthew Seaman wrote: > Hmmm... doesn't look right. Check what the PROVIDES lines in isc-dhcpd > [*] and slapd actually say :> grep PROVIDE isc-dhcpd # PROVIDE: dhcpd :> grep PROVIDE slapd # PROVIDE: slapd > [*] It seems isc-dhcpd actually PROVIDES dhcpd rather than isc-dhcpd. yes, you are right now rcorder output is: :> rcorder /etc/rc.d/* /usr/local/etc/rc.d/* ... /etc/rc.d/yppasswdd /usr/local/etc/rc.d/slapd /usr/local/etc/rc.d/1order /usr/local/etc/rc.d/isc-dhcpd /usr/local/etc/rc.d/isc-dhcpd6 /usr/local/etc/rc.d/svnserve ... thank you much, Matthew -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 06:13:35 2013 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 39AB1A09 for ; Tue, 17 Sep 2013 06:13:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3138B2D3E for ; Tue, 17 Sep 2013 06:13:34 +0000 (UTC) Received: from alph.d.allbsd.org (p4034-ipbf2106funabasi.chiba.ocn.ne.jp [114.148.167.34]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r8H6DHc5092758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Sep 2013 15:13:27 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.7/8.14.5) with ESMTP id r8H6DG49046907; Tue, 17 Sep 2013 15:13:16 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 17 Sep 2013 15:13:03 +0900 (JST) Message-Id: <20130917.151303.535278436892520110.hrs@allbsd.org> To: jmg@funkthat.com Subject: Re: sendmail queue runner starting multiple times... From: Hiroki Sato In-Reply-To: <20130917045530.GL68682@funkthat.com> References: <20130916214901.GE68682@funkthat.com> <20130917.133239.1751419599170896640.hrs@allbsd.org> <20130917045530.GL68682@funkthat.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Sep_17_15_13_03_2013_831)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Tue, 17 Sep 2013 15:13:27 +0900 (JST) X-Spam-Status: No, score=-92.2 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,RCVD_IN_PBL,RCVD_IN_RP_RNBL,SAMEHELOBY2HOP,SPF_SOFTFAIL, USER_IN_WHITELIST,X_CHINESE_RELAY autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 06:13:35 -0000 ----Security_Multipart(Tue_Sep_17_15_13_03_2013_831)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit John-Mark Gurney wrote in <20130917045530.GL68682@funkthat.com>: jm> Hiroki Sato wrote this message on Tue, Sep 17, 2013 at 13:32 +0900: jm> > John-Mark Gurney wrote jm> > in <20130916214901.GE68682@funkthat.com>: jm> > jm> > jm> I noticed that if you start sendmail, it doesn't detect that the jm> > jm> mail queue runner is already running and starts it up multiple times... jm> > jm> jm> > jm> My proposed patch is: jm> > jm> --- /usr/src/etc/rc.d/sendmail 2013-01-12 21:34:02.000000000 -0800 jm> > jm> +++ /tmp/sendmail.rc 2013-09-16 14:45:21.000000000 -0700 jm> > jm> @@ -93,7 +93,7 @@ jm> > jm> jm> > jm> name="sendmail_clientmqueue" jm> > jm> rcvar="sendmail_msp_queue_enable" jm> > jm> -start_cmd="${command} ${sendmail_msp_queue_flags}" jm> > jm> pidfile="${sendmail_mspq_pidfile:-/var/spool/clientmqueue/sm-client.pid}" jm> > jm> +start_cmd="[ -z \"`check_pidfile "${pidfile}" "${command}"`\" ] && ${command} ${sendmail_msp_queue_flags} && _run_rc_postcmd" jm> > jm> required_files="/etc/mail/submit.cf" jm> > jm> run_rc_command "$1" jm> > jm> jm> > jm> jm> > jm> This is because setting start_cmd disables the pid checks, so we need jm> > jm> to add them back... This patch won't print out the already running jm> > jm> bit, but we also don't print out the fact that we are starting it, it jm> > jm> doesn't seem like that big of a loss.. jm> > jm> jm> > jm> Is there a better way? If someone else doesn't produce a better patch, jm> > jm> I'll get re's permission to commit in few days... jm> > jm> jm> > jm> Thanks. jm> > jm> jm> > jm> P.S. Please CC me, I'm not on the list. jm> > jm> > Does the attached patch fix this issue? jm> jm> yes, it does, and gives me better messages... I only tested w/ jm> sendmail_enable="YES" and the defaults, but it properly detected the jm> queue runner running, doesn't start multiple copies, and kills the jm> queue runner off properly... jm> jm> Thanks, do you want to take care of committing, or shall I? Thank you. I will commit it today. If you notice something wrong, please let me know. -- Hiroki ----Security_Multipart(Tue_Sep_17_15_13_03_2013_831)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlI38u8ACgkQTyzT2CeTzy1ujwCfd5l8UR5/K8ufd14enMTO6Cr7 gKoAnjPnsqSe7qESzpUqTdjqe3OeO5H6 =slIt -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Sep_17_15_13_03_2013_831)---- From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 06:34:54 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3D387CCA for ; Tue, 17 Sep 2013 06:34:54 +0000 (UTC) (envelope-from zeus@ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9BE672E14 for ; Tue, 17 Sep 2013 06:34:53 +0000 (UTC) Received: from ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by relay.ibs.dn.ua with ESMTP id r8H6Yon8020672; Tue, 17 Sep 2013 09:34:50 +0300 (EEST) Message-ID: <20130917093450.20670@relay.ibs.dn.ua> Date: Tue, 17 Sep 2013 09:34:50 +0300 From: "Zeus Panchenko" To: "Matthew Seaman" Subject: how are rc "collisions" solved? Organization: I.B.S. LLC X-Mailer: MH-E 8.3.1; GNU Mailutils 2.99.98; GNU Emacs 24.0.93 X-Face: &sReWXo3Iwtqql1[My(t1Gkx; y?KF@KF`4X+'9Cs@PtK^y%}^.>Mtbpyz6U=,Op:KPOT.uG )Nvx`=er!l?WASh7KeaGhga"1[&yz$_7ir'cVp7o%CGbJ/V)j/=]vzvvcqcZkf; JDurQG6wTg+?/xA go`}1.Ze//K; Fk&/&OoHd'[b7iGt2UO>o(YskCT[_D)kh4!yY'<&:yt+zM=A`@`~9U+P[qS:f; #9z~ Or/Bo#N-'S'!'[3Wog'ADkyMqmGDvga?WW)qd=?)`Y&k=o}>!ST\ Cc: freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Zeus Panchenko 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 Sep 2013 06:34:54 -0000 hi, what will happen in case I have two contradictory scripts? lets say, script A defines daemon xxx start before daemon yyy and B defines it around way how system will perform in this case? -- Zeus V. Panchenko jid:zeus@im.ibs.dn.ua IT Dpt., I.B.S. LLC GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Tue Sep 17 06:54:35 2013 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 41263342 for ; Tue, 17 Sep 2013 06:54:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 695792F01 for ; Tue, 17 Sep 2013 06:54:34 +0000 (UTC) Received: from alph.d.allbsd.org (p4034-ipbf2106funabasi.chiba.ocn.ne.jp [114.148.167.34]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r8H6sHLt097619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Sep 2013 15:54:27 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.7/8.14.5) with ESMTP id r8H6sEQd047425; Tue, 17 Sep 2013 15:54:15 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 17 Sep 2013 15:53:59 +0900 (JST) Message-Id: <20130917.155359.80913304344603571.hrs@allbsd.org> To: zeus@ibs.dn.ua Subject: Re: how are rc "collisions" solved? From: Hiroki Sato In-Reply-To: <20130917093450.20670@relay.ibs.dn.ua> References: <20130917093450.20670@relay.ibs.dn.ua> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Sep_17_15_53_59_2013_401)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Tue, 17 Sep 2013 15:54:27 +0900 (JST) X-Spam-Status: No, score=-92.3 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,RCVD_IN_PBL,RCVD_IN_RP_RNBL,SAMEHELOBY2HOP,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 06:54:35 -0000 ----Security_Multipart(Tue_Sep_17_15_53_59_2013_401)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Zeus Panchenko" wrote in <20130917093450.20670@relay.ibs.dn.ua>: ze> hi, ze> ze> what will happen in case I have two contradictory scripts? ze> ze> lets say, script A defines daemon xxx start before daemon yyy and B ze> defines it around way ze> ze> how system will perform in this case? In that case circular dependency will be detected and a warning message will be displayed. Those scripts will be invoked in a deterministic order, however. -- Hiroki ----Security_Multipart(Tue_Sep_17_15_53_59_2013_401)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlI3/IcACgkQTyzT2CeTzy1qIQCfbHGwg6KjBNx9cxiMf9rcuIOq 3lwAoJecG/XdDxBum++heSKJYIFtAMEN =iDGh -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Sep_17_15_53_59_2013_401)---- From owner-freebsd-rc@FreeBSD.ORG Fri Sep 20 17:26:17 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B96C8C6C for ; Fri, 20 Sep 2013 17:26:17 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9727A2506 for ; Fri, 20 Sep 2013 17:26:17 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lj1so970261pab.29 for ; Fri, 20 Sep 2013 10:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Qm3DVUzJ3xnikfGecc+UfBBWyfU+5Iv4bsSYNcrXqsQ=; b=E49Wf0xeDUyjaYprk5610l6GqhgxcJOFsMjdkJFqhCswSsKzoicsTksTuLh8cFGCFG kmnnQF16hxIOYM79hVW0+pr1no2MURacNJQmPg4Y7yLs187VQhIFmDhi+s0DUD7rioI0 k6dLgOkjIUgx4mJjMSDaqjC7pKMR8L35AC/XtqbOV9aZWPhpObOGW0bny1576AwLfbNB ubXe/x2ma1AX8ch7EzGv5FvOvSRXx/q0aSzJAi6NVuIB4oxIF3sN/Rv8+ye0X8IRfbcX KCe3RpQaqDSH59QKR34cZ3YnxHXNE1/dqDwIGyL3rQP2i1ivagpB2CSNbbUA6bcOMV+L 3v6g== X-Received: by 10.68.50.106 with SMTP id b10mr9350031pbo.152.1379697977192; Fri, 20 Sep 2013 10:26:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.241.69 with HTTP; Fri, 20 Sep 2013 10:25:57 -0700 (PDT) From: Eir Nym Date: Fri, 20 Sep 2013 21:25:57 +0400 Message-ID: Subject: rc.conf reloading while /etc/ is one of mounted fs To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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 Sep 2013 17:26:17 -0000 I had problem with /etc/rc.conf and /etc/rc.conf.local won't be reloaded if /etc/ mounted on boot. There's way to detect it more correctly than I does? I have following ZFS mounts: server/common/distfiles /usr/ports/distfiles server/common/home /usr/home server/common/local.etc /usr/local/etc server/common/obj /usr/obj server/common/tmp /tmp server/common/var /var server/common/www /usr/local/www server/os/r255342 / server/os/r255342/boot /boot server/os/r255342/etc /etc server/os/r255342/local /usr/local server/os/r255342/ports /usr/ports server/os/r255342/src /usr/src the reason I split root partition is ability to make it read-only So the only way to load correct /etc/rc.conf and /etc/rc.local is replace /etc/rc on root partition with following contents: #!/bin/sh /sbin/zfs mount `zfs list|awk ' $5=="/etc" {print $1}' ` exec /etc/rc $@ -- Eir Nym