Date: Fri, 12 Dec 2003 14:13:49 -0000 From: "Barry Byrne" <barry.byrne@wbtsystems.com> To: "Andre Grove" <ondrugs@ananzi.co.za>, <freebsd-questions@freebsd.org> Subject: RE: startup scripts in /usr/local/etc/rc.d Message-ID: <NCBBIAMNAKDKFJIIGNPKOEIPOKAA.barry.byrne@wbtsystems.com> In-Reply-To: <3FD9C4BB.6050804@ananzi.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Andre: What is the script called? It should end in .sh and be executable by root. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Andre Grove > Sent: 12 December 2003 13:38 > To: freebsd-questions@freebsd.org > Subject: Re: startup scripts in /usr/local/etc/rc.d > > > 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 <ondrugs@ananzi.co.za> 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" > > > > > > > > > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKOEIPOKAA.barry.byrne>