From owner-freebsd-rc@FreeBSD.ORG Mon Jan 13 11:06:51 2014 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 ESMTPS id EB15B693 for ; Mon, 13 Jan 2014 11:06:51 +0000 (UTC) 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 CCCDE1156 for ; Mon, 13 Jan 2014 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 s0DB6p0G095966 for ; Mon, 13 Jan 2014 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 s0DB6p34095964 for freebsd-rc@FreeBSD.org; Mon, 13 Jan 2014 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Jan 2014 11:06:51 GMT Message-Id: <201401131106.s0DB6p34095964@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.17 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, 13 Jan 2014 11:06:52 -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/185429 rc [rc.subr] ${name}_chroot does not work when there's a o conf/184355 rc [rc.firewall] [patch] ipfw failed to restart if tables 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 92 problems total. From owner-freebsd-rc@FreeBSD.ORG Wed Jan 15 19:06:06 2014 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 ESMTPS id 08D97608 for ; Wed, 15 Jan 2014 19:06:06 +0000 (UTC) Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C3F261A84 for ; Wed, 15 Jan 2014 19:06:05 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id wp4so1647363obc.28 for ; Wed, 15 Jan 2014 11:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FD6cX51YK2c4OxzpvpEMrldxgPV3Wzz8+CMjedrrLJM=; b=T8CN4lWjZk4R11QZ2JLLKduvzjV87g5mIUF+GraxhA8rWYWtcCPDdPUhmiGFRt1bo/ KydzJrJak/fu6I4szCfU2sMzneOWLa05OpuQVkuxrCCrtsGh5v4f9G9FAJjbNDE/+oml tJG9P7XAssp+Q3PFTAxI2BcT+T2GRBVs6mACxGAZGqZlqNrGm/x6bVI2MJzWiQcsmukj dHN4p9Ck5ZCw9RD+iRqFlujjYVkw+QMWAdCCdbVtgoO4XrHJ9esXVUQKQFoP65+eR5Gy 8aI2VykL+qUAnlpOAQZv//1lfcxau6UK8dgG6DXyCizrPVpirgSXY+nfnMgRX64iiUnx hqQg== MIME-Version: 1.0 X-Received: by 10.60.118.168 with SMTP id kn8mr3066991oeb.43.1389812764928; Wed, 15 Jan 2014 11:06:04 -0800 (PST) Received: by 10.76.25.134 with HTTP; Wed, 15 Jan 2014 11:06:04 -0800 (PST) Date: Wed, 15 Jan 2014 20:06:04 +0100 Message-ID: Subject: Stopping services by rc.d scripts From: =?ISO-8859-2?Q?Tomek_Wa=B3aszek?= To: freebsd-rc@freebsd.org Content-Type: multipart/mixed; boundary=047d7b4728162a90fb04f0070056 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.17 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, 15 Jan 2014 19:06:06 -0000 --047d7b4728162a90fb04f0070056 Content-Type: text/plain; charset=ISO-8859-1 Hello, I`ve seen some strange behaviour of the rc scripts when I was stopping openntpd and opensmtpd. When I was stopping one of those services I saw this: [root@shewolf ~]# ptree -C ntpd -l 2690 ntpd: [priv] 2691 ntpd: ntp engine 2692 ntpd: dns engine *[root@shewolf ~]# /usr/local/etc/rc.d/openntpd stopStopping openntpd.kill: 2691: No such processkill: 2692: No such process* [root@shewolf ~]# uname -a FreeBSD shewolf.com.pl 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #0 r259233: Thu Dec 12 19:57:26 CET 2013 root@shewolf.com.pl:/usr/obj/usr/src/sys/SHEWOLF i386 I was wondering why there are those 'No such process' errors. So in short words what is happening, rc framework will collect all openntpd pids (openntpd does not support pidfile :( ) and send SIGTERM to them. When the first process of the openntpd gets SIGTERM it will first kill his children and quit. So this is the reason why we are seeing 'No such process'. This problem does not occurs when a daemon supports pid file becuase rc will get only one pid and send SIGTERM only to it. It was quite annoying for me so I decided to do something with it. The simplest solution would be to add pidfile into the /usr/local/etc/rc.d/openntpd but there is no pidfile in this service. So I wrote a patch for /etc/rc.subr, you can defined variable *leader* (bool) in the rc script. If leader will be set to true ("YES" :)) it will kill only the process group leader, so we will not get any 'No such process' errors and the process group leader will kill necessary processes. If you will set it to NO or dont define it in the script it will be running with the default behaviour. Maybe there are some other methods to do this but I dont know them. Patch is in the attachment, I`ve deployed it on my server and everything is working but anyway be careful ;). If you found it useful thats good but if you think that my problem is ridiculous and my solution is terrible just ignore this post ;). Tomek --047d7b4728162a90fb04f0070056 Content-Type: application/octet-stream; name=patch Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_hqgyg2wq0 ZGlmZiAtLWdpdCBhL3JjLnN1YnIgYi9yYy5zdWJyCmluZGV4IDg1MGJjMDMuLjY2OGVhMTQgMTAw NjQ0Ci0tLSBhL3JjLnN1YnIKKysrIGIvcmMuc3VicgpAQCAtMjUyLDcgKzI1Miw3IEBAIGNoZWNr X3BpZGZpbGUoKQogCQlkZWJ1ZyAicGlkIGZpbGUgKCRfcGlkZmlsZSk6IG5vIHBpZCBpbiBmaWxl LiIKIAkJcmV0dXJuCiAJZmkKLQlfZmluZF9wcm9jZXNzZXMgJF9wcm9jbmFtZSAkX2ludGVycHJl dGVyICctcCAnIiRfcGlkIiAke19sZWFkZXI6LSJOTyJ9CisJX2ZpbmRfcHJvY2Vzc2VzICRfcHJv Y25hbWUgJHtfaW50ZXJwcmV0ZXI6LS59ICctcCAnIiRfcGlkIgogfQogCiAjCkBAIC0yNjUsMTIg KzI2NSwxMCBAQCBjaGVja19wcm9jZXNzKCkKIHsKIAlfcHJvY25hbWU9JDEKIAlfaW50ZXJwcmV0 ZXI9JDIKLQlfbGVhZGVyPSQzCi0KIAlpZiBbIC16ICIkX3Byb2NuYW1lIiBdOyB0aGVuCi0JCWVy ciAzICdVU0FHRTogY2hlY2tfcHJvY2VzcyBwcm9jbmFtZSBbaW50ZXJwcmV0ZXIgbGVhZGVyXScK KwkJZXJyIDMgJ1VTQUdFOiBjaGVja19wcm9jZXNzIHByb2NuYW1lIFtpbnRlcnByZXRlcl0nCiAJ ZmkKLQlfZmluZF9wcm9jZXNzZXMgJF9wcm9jbmFtZSAkX2ludGVycHJldGVyICctYXgnICRfbGVh ZGVyCisJX2ZpbmRfcHJvY2Vzc2VzICRfcHJvY25hbWUgJHtfaW50ZXJwcmV0ZXI6LS59ICctYXgn CiB9CiAKICMKQEAgLTI5NSwxMyArMjkzLDEyIE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IkX3BpZGNt ZCIgXTsgdGhlbgogCQkJX2tleXdvcmRzPSIke19rZXl3b3Jkc30gc3RhdHVzIHBvbGwiCg== --047d7b4728162a90fb04f0070056-- From owner-freebsd-rc@FreeBSD.ORG Thu Jan 16 17:35:33 2014 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 ESMTPS id C70375AB for ; Thu, 16 Jan 2014 17:35:33 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61B83137D for ; Thu, 16 Jan 2014 17:35:33 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id l18so3495822wgh.35 for ; Thu, 16 Jan 2014 09:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7/XmssPqV54C05Vu4iHqjor8gOL+N8LYUlChkEnUdUI=; b=UQroV27OkBmkxqW503iU+v3fj93UBSGM6P+PHnQE+LiTXQxNfQZ6SemFFT+RXSFBnw hwSfxtqttuN6uaW19fkRsHa3FPht6yhbJTCce38lF/rMNDYMrDGa+OIoZLi64//cKL5G sJCd04li42Wl9P2gcYHAjXunUAym/t9+qpQVhes5QF6EF0/3QIYdc+aC6onyftD8j8ee mMCn9Aq9im8w/6qR16d05y5w5gqYdfjy3KWJVrDiNfXZunEUpS56TuFKygSkAMSpEvPu RIZyAq32MB88qAwESPAep9PlscWoW1C6K/DQbhg3YkHwZS6zrlSKhlQHcSJY/sGg0fC7 ggiQ== X-Received: by 10.180.97.10 with SMTP id dw10mr5023726wib.25.1389893731842; Thu, 16 Jan 2014 09:35:31 -0800 (PST) Received: from [172.16.0.2] (tx97.net. [85.198.160.156]) by mx.google.com with ESMTPSA id ci4sm6894168wjc.21.2014.01.16.09.35.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jan 2014 09:35:30 -0800 (PST) Message-ID: <52D8182B.6030602@gmail.com> Date: Thu, 16 Jan 2014 19:34:35 +0200 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: freebsd-rc@freebsd.org Subject: Why does rc.d/tmp require 'mountcritremote'? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.17 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, 16 Jan 2014 17:35:33 -0000 Hi, folks. In one particular setup I use tmpmfs, but I also have links from /var into /tmp, so I need rc.d/tmp to be executed before rc.d/var (or at least, before rc.d/SERVERS). This however, appears to be impossible: rc.d/tmp requires 'mountcritremote', which then requires 'var' through a series of dependencies. So my question is: why does rc.d/tmp require 'mountcritremote'? Can we change it to 'mountcritlocal' or some such? I've looked into commit logs, and this requirement was introduced in revision 153028 [1]; the commit log says: "Brooks pointed out a case where tmp needs to be run after mountcritremote, so force it the other way instead.". Anyone knows what case is this? For the reference, rc.d/var, which, just like rc.d/tmp, creates an md-backed filesystem, only requires 'mountcritlocal' and 'zfs'. [1] https://svnweb.freebsd.org/base?view=revision&revision=153028