From owner-freebsd-questions@FreeBSD.ORG Fri Dec 12 05:38:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E39E516A4CE for ; Fri, 12 Dec 2003 05:38:30 -0800 (PST) Received: from office.adept.co.za (office.adept.co.za [196.44.32.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CF8B43D31 for ; Fri, 12 Dec 2003 05:38:25 -0800 (PST) (envelope-from ondrugs@ananzi.co.za) Received: from ananzi.co.za (unknown [192.168.1.11]) by office.adept.co.za (Postfix) with ESMTP id 04D4311EFDC for ; Fri, 12 Dec 2003 15:38:10 +0200 (SAST) Message-ID: <3FD9C4BB.6050804@ananzi.co.za> Date: Fri, 12 Dec 2003 15:38:03 +0200 From: Andre Grove User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20031211173501.G4978@asu.edu> <441xrah8wx.fsf@be-well.ilk.org> <3FD9A0E3.6050206@ananzi.co.za> <44r7zaky60.fsf@be-well.ilk.org> In-Reply-To: <44r7zaky60.fsf@be-well.ilk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: startup scripts in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 13:38:31 -0000 sorry. i have too much faith in ESP i guess. this is the script that is supposed to run: #!/usr/local/bin/bash /usr/sbin/pppd /dev/caau1 modem crtscts 115200 lock asyncmap 0 defaultroute debug passive persist It's supposed to bring up the PPP interface, but it doesn't. but running the script manually (not the command itself) does. There is no references in /var/spooll/messages that the script was even attempted at bootup. A Lowell Gilbert wrote: >*This message was transferred with a trial version of CommuniGate(tm) Pro* >Andre Grove writes: > > > >>Why would a script not run? I have a script in /usr/local/etc/rc.d, I >>did chmod +x it, but it still does not run at startup. >> >> > >You didn't give much information there. Not feeling terribly psychic >today, I'll just tell you what the manual says. > > o Scripts are only executed if their basename(1) matches the shell > globbing pattern *.sh, and they are executable. Any other files or > directories present within the directory are silently ignored. > o When a script is executed at boot time, it is passed the string > ``start'' as its first and only argument. At shutdown time, it is > passed the string ``stop'' as its first and only argument. All rc.d > scripts are expected to handle these arguments appropriately. If no > action needs to be taken at a given time (either boot time or shut- > down time) the script should exit successfully and without producing > an error message. >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >