From owner-freebsd-bugs Mon Dec 10 21: 0:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 423B637B417 for ; Mon, 10 Dec 2001 21:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBB502s11501; Mon, 10 Dec 2001 21:00:02 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BE3D837B416 for ; Mon, 10 Dec 2001 20:58:06 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBB4w6a11383; Mon, 10 Dec 2001 20:58:06 -0800 (PST) (envelope-from nobody) Message-Id: <200112110458.fBB4w6a11383@freefall.freebsd.org> Date: Mon, 10 Dec 2001 20:58:06 -0800 (PST) From: Nicholas Paufler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/32687: scripts in /usr/local/etc/rc.d not executed in 4.4-STABLE Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32687 >Category: misc >Synopsis: scripts in /usr/local/etc/rc.d not executed in 4.4-STABLE >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 10 21:00:02 PST 2001 >Closed-Date: >Last-Modified: >Originator: Nicholas Paufler >Release: FreeBSD 4.4-STABLE #0: Mon Dec 10 18:49:42 MST 2001 >Organization: >Environment: FreeBSD www.discordia.ca 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Dec 10 18:49:42 MST 2001 root@www.discordia.ca:/usr/obj/usr2/src/sys/DISCORDIA i386 >Description: After doing an upgrade from 4.3-STABLE (built May 08 2001) to 4.4-STABLE (built Dec 10 2001) I noticed that local packages being started via scripts in /usr/local/etc/rc.d were not being executed upon reboot. I'd done a mergemaster after completing the make installworld in which I installed all new files except for rc.conf and rc.firewall. I eventually traced the problem to /etc/rc For whatever reason the local package initialization section of that file was failing to function correctly. I edited that file and pasted in the section from a different 4.3-STABLE machine, rebooted and the problem was solved. All local packages (apache, dhcpd, mysql) started properly. >How-To-Repeat: Local packages will not be initialized until that section of /etc/rc is replaced so every time the computer reboots the problem will repeat. >Fix: In the /etc/rc for 4.4-STABLE as of December 10th: Replace the current section: case ${local_startup} in [Nn][Oo] | '') ;; *) echo -n 'Local package initialization:' slist="" for dir in ${local_startup}; do if [ -d "${dir}" ]; then for script in ${dir}/*.sh; do slist="${slist}${script_name_sep}${script}" done fi done script_save_sep="$IFS" IFS="${script_name_sep}" for script in ${slist}; do if [ -x "${script}" ]; then (set -T trap 'exit 1' 2 ${script} start) fi done IFS="${script_save_sep}" echo '.' ;; esac With an earlier version of that section, such as the following taken from a 4.3-STABLE system: case ${local_startup} in [Nn][Oo] | '') ;; *) echo -n 'Local package initialization:' for dir in ${local_startup}; do if [ -d "${dir}" ]; then for script in ${dir}/*.sh; do if [ -x "${script}" ]; then (set -T trap 'exit 1' 2 ${script} start) fi done fi done echo '.' ;; esac I'm guessing that there is a typo or some other problem in the local package init section of the current /etc/rc which is causing the problem. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message