Date: Mon, 1 Jun 1998 14:45:06 -0400 (EDT) From: Jeff Aitken <jaitken@wingnut.syntunix.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: misc/6818: local_startup section of /etc/rc Message-ID: <199806011845.OAA00367@wingnut.syntunix.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806011845.OAA00367>