From owner-freebsd-bugs Mon Jun 1 11:50:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03243 for freebsd-bugs-outgoing; Mon, 1 Jun 1998 11:50:29 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA03235 for ; Mon, 1 Jun 1998 11:50:27 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA12006; Mon, 1 Jun 1998 11:50:01 -0700 (PDT) Received: from wingnut.syntunix.com (cojones.syntunix.com [209.12.7.139] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02633 for ; Mon, 1 Jun 1998 11:45:36 -0700 (PDT) (envelope-from jaitken@wingnut.syntunix.com) Received: (from jaitken@localhost) by wingnut.syntunix.com (8.8.8/8.8.8) id OAA00367; Mon, 1 Jun 1998 14:45:06 -0400 (EDT) (envelope-from jaitken) Message-Id: <199806011845.OAA00367@wingnut.syntunix.com> Date: Mon, 1 Jun 1998 14:45:06 -0400 (EDT) From: Jeff Aitken Reply-To: jaitken@wingnut.syntunix.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/6818: local_startup section of /etc/rc Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6818 >Category: misc >Synopsis: startup scripts must have .sh extension >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 1 11:50:01 PDT 1998 >Last-Modified: >Originator: Jeff Aitken >Organization: Dimension Enterprises, Inc. >Release: FreeBSD 2.2.6-RELEASE i386 >Environment: Standard FreeBSD-2.2.6-RELEASE installation. >Description: Near the end of /etc/rc, the system goes through each directory listed in the 'local_startup' rc.conf variable. It looks for files ending in .sh and executes them (if they are executable). The restriction that system startup scripts end in .sh is silly. >How-To-Repeat: Put a perfectly valid startup script that doesn't end in .sh in /usr/local/etc/rc.d and reboot. :-) >Fix: *** rc.dist Mon Jun 1 14:40:35 1998 --- rc Mon Jun 1 14:34:06 1998 *************** *** 306,312 **** if [ "X${local_startup}" != X"NO" ]; then echo -n 'Local package initialization:' for dir in ${local_startup}; do ! [ -d ${dir} ] && for script in ${dir}/*.sh; do [ -x ${script} ] && ${script} start done done --- 306,312 ---- if [ "X${local_startup}" != X"NO" ]; then echo -n 'Local package initialization:' for dir in ${local_startup}; do ! [ -d ${dir} ] && for script in ${dir}/*; do [ -x ${script} ] && ${script} start done done >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message