From owner-freebsd-rc@FreeBSD.ORG Mon Apr 9 09:30:54 2012 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 244DA106566C; Mon, 9 Apr 2012 09:30:54 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EB33C8FC16; Mon, 9 Apr 2012 09:30:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q399UrTY048546; Mon, 9 Apr 2012 09:30:53 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q399UrN5048537; Mon, 9 Apr 2012 09:30:53 GMT (envelope-from linimon) Date: Mon, 9 Apr 2012 09:30:53 GMT Message-Id: <201204090930.q399UrN5048537@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/166783: [rc] unexpected startup of daemons 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, 09 Apr 2012 09:30:54 -0000 Old Synopsis: unexped startup of the daemon New Synopsis: [rc] unexpected startup of daemons Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Mon Apr 9 09:29:30 UTC 2012 Responsible-Changed-Why: I'm going to take a guess here and assign this to freebsd-rc. http://www.freebsd.org/cgi/query-pr.cgi?pr=166783 From owner-freebsd-rc@FreeBSD.ORG Mon Apr 9 11:07:20 2012 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 B46F5106564A for ; Mon, 9 Apr 2012 11:07:20 +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 9D6538FC15 for ; Mon, 9 Apr 2012 11:07:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39B7Ko2039718 for ; Mon, 9 Apr 2012 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39B7Jtf039716 for freebsd-rc@FreeBSD.org; Mon, 9 Apr 2012 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Apr 2012 11:07:19 GMT Message-Id: <201204091107.q39B7Jtf039716@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, 09 Apr 2012 11:07:20 -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/166783 rc [rc] unexpected startup of daemons o conf/166484 rc [rc] [patch] rc.initdiskless patch for different major o kern/165769 rc [rc][jai][ipv6] IPv6 Initialization on external iface o bin/165477 rc [rc] dhclient is run twice 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 p kern/161899 rc [route] ntpd(8): Repeating RTM_MISS packets causing hi 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/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) 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/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/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/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/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/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 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/123119 rc [patch] rc script for ipfw does not handle IPv6 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/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/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/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/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/44170 rc [patch] Add ability to run multiple pppoed(8) on start 93 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Apr 9 22:37:24 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C39E106566C; Mon, 9 Apr 2012 22:37:24 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 78E4E8FC15; Mon, 9 Apr 2012 22:37:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39MbOlO084896; Mon, 9 Apr 2012 22:37:24 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39MbNr1084892; Mon, 9 Apr 2012 22:37:23 GMT (envelope-from dougb) Date: Mon, 9 Apr 2012 22:37:23 GMT Message-Id: <201204092237.q39MbNr1084892@freefall.freebsd.org> To: turutani@scphys.kyoto-u.ac.jp, dougb@FreeBSD.org, freebsd-rc@FreeBSD.org, dougb@FreeBSD.org From: dougb@FreeBSD.org Cc: Subject: Re: conf/166783: [rc] unexpected startup of daemons 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, 09 Apr 2012 22:37:24 -0000 Synopsis: [rc] unexpected startup of daemons State-Changed-From-To: open->closed State-Changed-By: dougb State-Changed-When: Mon Apr 9 22:34:13 UTC 2012 State-Changed-Why: I think that rather than trying to diagnose your problem here, it would be easier to do so on freebsd-rc@FreeBSD.org. Please send a message to that list with your information that you presented here, and also please do the following: 1. Send a diff of the original mrtg script and your my_ version. 2. Enable the console.log in /etc/syslog.conf 3. Add rc_debug=1 and rc_info=1 to /etc/rc.conf, and reboot. 4. Make the console.log file available somewhere that we can review it (a web site, etc.). Please do not send the whole log in e-mail. Doug Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Mon Apr 9 22:34:13 UTC 2012 Responsible-Changed-Why: I am closing this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=166783 From owner-freebsd-rc@FreeBSD.ORG Tue Apr 10 10:28:07 2012 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 32BA9106566B; Tue, 10 Apr 2012 10:28:06 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 919D38FC0C; Tue, 10 Apr 2012 10:28:06 +0000 (UTC) Received: by iahk25 with SMTP id k25so9639451iah.13 for ; Tue, 10 Apr 2012 03:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iX5jMS5zlbMpBcZvvaqNi3kusLRm3koeVxyTPRE3YGA=; b=HZuTjwqDUyfy4Odl5KLFS8/0Rrz0HweArEw16mk9jr+yil80sUpNRFy5Lh/R5mjwOG dBHhil2UZ9fkVXpc0GS6lxQz1ImXdePE8jaHIWd5E+/NIT4ACqHfLVjmW5VJ4ljVOcSa Osmd38Ivga+6IB/4zYrlksddn2OVb+zOtAzFhPzlW2hb2ORxhS7Bk+KgExam6lz/o4b/ x1jKWztDqKbATLeTzPxEMRwZ0rNrGo0XBb4d4a8ZuM/A6K1l0nBiONTSz/PwnCsdWNb8 hAezoLYMQDe7WfkzZ+bnl8Ej7ovYt+9UXu8r0mKFXXUARmoJfXDaB7V5hdX4K79cUmO4 xOOg== MIME-Version: 1.0 Received: by 10.50.156.170 with SMTP id wf10mr1767667igb.7.1334053685970; Tue, 10 Apr 2012 03:28:05 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.43.130.201 with HTTP; Tue, 10 Apr 2012 03:28:05 -0700 (PDT) In-Reply-To: <4F83635C.9000701@FreeBSD.org> References: <30133A83-88E4-4715-8514-E9229E9AF078@root.org> <4F83635C.9000701@FreeBSD.org> Date: Tue, 10 Apr 2012 12:28:05 +0200 X-Google-Sender-Auth: 4fjklqRq2OB-pYXJaNbYCks98MU Message-ID: From: Robert Millan To: Doug Barton Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org, Steven Chamberlain , freebsd-rc@freebsd.org, Nate Lawson Subject: Re: [PATCH] Abort powerd when no cpufreq(4) support is found 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, 10 Apr 2012 10:28:07 -0000 El 10 d=E2=80=99abril de 2012 0:31, Doug Barton ha escr= it: > On 04/09/2012 13:59, Robert Millan wrote: >> El 9 d=E2=80=99abril de 2012 18:53, Nate Lawson ha escri= t: >>> Fine by me. The rc framework or user should be the one to interpret the= error code and realize that it's ok that it's not running (not supported). >> >> Committed then, thanks for reviewing. > > Have you verified how rc.d handles this new error? If changes are > necessary a friendly message to freebsd-rc@ would be in order .... I don't think any changes are necessary. It uses the generic routine in rc.subr, which gives the same treatment to all non-zero exit codes. Maybe it'd be a good idea to treat it differently (at least this is what we did in Debian), but for FreeBSD I'm probably not the most indicate to change behaviour on that area. I'm adding freebsd-rc to CC in case someone wants to apply this kind of cha= nge. --=20 Robert Millan From owner-freebsd-rc@FreeBSD.ORG Thu Apr 12 10:06:03 2012 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 453DD106564A for ; Thu, 12 Apr 2012 10:06:03 +0000 (UTC) (envelope-from turutani@scphys.kyoto-u.ac.jp) Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [133.3.248.237]) by mx1.freebsd.org (Postfix) with ESMTP id DD05A8FC15 for ; Thu, 12 Apr 2012 10:06:02 +0000 (UTC) Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 40CB32EC00F; Thu, 12 Apr 2012 19:05:56 +0900 (JST) Received: from POLYMER5.scphys.kyoto-u.ac.jp (wd232.BFL23.vectant.ne.jp [210.131.195.232]) by smtp-auth.kuins.kyoto-u.ac.jp (Postfix) with ESMTP id 114B82EC001; Thu, 12 Apr 2012 19:05:56 +0900 (JST) Message-Id: <201204121005.AA01669@POLYMER5.scphys.kyoto-u.ac.jp> From: Tsurutani Naoki Date: Thu, 12 Apr 2012 19:05:55 +0900 To: freebsd-rc@freebsd.org MIME-Version: 1.0 X-Mailer: AL-Mail32 Version 1.13 Content-Type: text/plain; charset=us-ascii Subject: unexpected startup of daemons (Re: conf/166783) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2012 10:06:03 -0000 Hi all, I have a question about startup behaviour of daemons: Some rc scripts run unexpectedly. I installed ports/net-mgmt/mrtg and I use the startup script copied from the one installed by this port, in order to change the order to run. I named the script and variables with "my_" prefix and enable them; original script exists and disabled in rc.conf. In my script I did not change the PID filename. While booting the FreeBSD, "my_mrtg_daemon" script runs fine, and original "mrtg_daemon" script also runs unexpectedly and dies, for PID file is not writable. Original pid file made by "my_mrtg_daemon" is removed at that time, for the user and group for mrtg are changed only for *my* script. When the user and group are the same, two mrtg daemons run. I think "XXX_enable" variable controls whether the program pointed in the script should run or not; however, disabled script can run with normal "start" option. But, in this case, when I execute a script, first, the PID file is checked even if the script is not enabled by rc.conf. If the PID file exists and the process shown in PID file also exists, script returns message like "the process still exists"; normal "start" arugument. However, if it is executed with "faststart" argument (like in booting sequence), PID file is removed and the program is executed. In both case, scripts that are not enabled by rc.conf are executed, and the variables except "XXX_enable" are used unexpectedly. If two or more scripts use the same PID file and the only one of them is enabled by rc.conf, and when they have same "program", such as some interpreter language especially, unexpected programs can be executed. I think scripts without "XXX_enable=YES" should not run, even if the PID file exists; otherwise, we should take care of the variables which are not enabled. In addition, some bugs exist that execute the "start" routine of disabled scripts. Isn't my idea is wrong ? diff of original startup script and "my_" script: --- mrtg_daemon 2012-04-09 12:19:22.000000000 +0900 +++ my_mrtg_daemon 2012-04-11 10:31:47.000000000 +0900 @@ -2,36 +2,37 @@ # # $FreeBSD: ports/net-mgmt/mrtg/files/mrtg_daemon.in,v 1.4 2012/01/14 08:56:37 dougb Exp $ +# Copied from mrtg_daemon, to control order. Tsurutani Naoki. # -# PROVIDE: mrtg_daemon +# PROVIDE: my_mrtg_daemon # REQUIRE: DAEMON bsnmpd snmpd # KEYWORD: shutdown . /etc/rc.subr -name="mrtg_daemon" -rcvar=mrtg_daemon_enable +name="my_mrtg_daemon" +rcvar=my_mrtg_daemon_enable load_rc_config $name -: ${mrtg_daemon_enable="NO"} -: ${mrtg_daemon_pidfile="/var/run/mrtg/mrtg.pid"} -: ${mrtg_daemon_user="mrtg"} -: ${mrtg_daemon_group="mrtg"} -: ${mrtg_daemon_config="/usr/local/etc/mrtg/mrtg.cfg"} +: ${my_mrtg_daemon_enable="NO"} +: ${my_mrtg_daemon_pidfile="/var/run/mrtg/mrtg.pid"} +: ${my_mrtg_daemon_user="mrtg"} +: ${my_mrtg_daemon_group="mrtg"} +: ${my_mrtg_daemon_config="/usr/local/etc/mrtg/mrtg.cfg"} -: ${mrtg_daemon_flags="--pid-file $mrtg_daemon_pidfile --lock-file /var/run/mrtg/lockfile --confcache-file /var/run/mrtg/confcache --user $mrtg_daemon_user --group $mrtg_daemon_group --daemon $mrtg_daemon_config"} +: ${my_mrtg_daemon_flags="--pid-file $my_mrtg_daemon_pidfile --lock-file /var/run/mrtg/lockfile --confcache-file /var/run/mrtg/confcache --user $my_mrtg_daemon_user --group $my_mrtg_daemon_group --daemon $my_mrtg_daemon_config"} -start_precmd="mrtg_daemon_precmd" +start_precmd="my_mrtg_daemon_precmd" command="/usr/local/bin/mrtg" command_interpreter="/usr/local/bin/perl" -pidfile=${mrtg_daemon_pidfile} +pidfile=${my_mrtg_daemon_pidfile} -mrtg_daemon_precmd() +my_mrtg_daemon_precmd() { - rm -f /var/run/mrtg/lockfile /var/run/mrtg/confcache $mrtg_daemon_pidfile + rm -f /var/run/mrtg/lockfile /var/run/mrtg/confcache $my_mrtg_daemon_pidfile export LANG=C } ===== End of Diff ===== my rc.conf file about mrtg: mrtg_daemon_enable="NO" mrtg_daemon_pidfile="/var/run/mrtg/mrtg.pid" mrtg_daemon_user="mrtg" mrtg_daemon_group="mrtg" mrtg_daemon_config="/usr/local/etc/mrtg/mrtg.cfg" my_mrtg_daemon_enable="YES" my_mrtg_daemon_pidfile="/var/run/mrtg/mrtg.pid" my_mrtg_daemon_user="www" my_mrtg_daemon_group="www" my_mrtg_daemon_config="/usr/local/etc/mrtg/mrtg.cfg" my_mrtg_daemon_others_enable="NO" my_mrtg_daemon_others_pidfile="/var/run/mrtg/others.pid" my_mrtg_daemon_others_user="mrtg" my_mrtg_daemon_others_group="mrtg" my_mrtg_daemon_others_config="/usr/local/etc/mrtg/others.cfg" ===== End of rc.conf ===== console.log with booting rc_debug=1 and rc_info=1 in /etc/rc.conf is available at http://barutan.s296.xrea.com/nocache/bootlog20120411.txt --- Tsurutani Naoki turutani@scphys.kyoto-u.ac.jp