From owner-freebsd-questions Sat Jul 21 7:36:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f206.law10.hotmail.com [64.4.15.206]) by hub.freebsd.org (Postfix) with ESMTP id 61B8C37B403 for ; Sat, 21 Jul 2001 07:36:22 -0700 (PDT) (envelope-from ex279@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 21 Jul 2001 07:36:22 -0700 Received: from 66.76.118.238 by lw10fd.law10.hotmail.msn.com with HTTP; Sat, 21 Jul 2001 14:36:21 GMT X-Originating-IP: [66.76.118.238] From: "Todd Reed" To: taylorm@bytecraftsystems.com Cc: freebsd@nc.rr.com, freebsd-questions@freebsd.org Subject: Re: Startup Scripts version 2 Date: Sat, 21 Jul 2001 09:36:21 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 Jul 2001 14:36:22.0033 (UTC) FILETIME=[82FB0010:01C111F2] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Actually, that was the email response helped me! I had to do that. Changing the chmod and adding the line in the rc.conf file got the script running upon startup! Just like I needed it to! --Todd Really dumb response chmod u+x startup.sh to make it executable .... ----- Original Message ----- From: "Neill Robins" To: "Todd Reed" Cc: Sent: Saturday, July 21, 2001 8:03 AM Subject: Re: Startup Scripts version 2 >Friday, July 20, 2001, 4:12:26 PM, Todd Reed wrote: TR> I created a >/usr/local/rc.d called startup.sh. When I restart my machine, >TR> it doesn't seem to execute. Below is the code in the sh file. What am I >TR> doing wrong? Do I have to edit the rc.conf? > > >TR> #!/bin/sh TR> # > >TR> /sbin/ldconfig -m /usr/local/lib/mysql > >TR> if [ -x /mnt/vdrv/dbms/bin/safe_mysqld ] TR> then TR> >/mnt/vdrv/dbms/bin/safe_mysqld > /dev/null & && echo -n ` mysql` >TR> fi > >Todd, > >Mike Meyer just might have the answer. Give this a try. > >From Mike Meyer: > >It should also check for the arguments "start" and "stop" so it can be used >at system startup and system shutdown time. Here's a trivial example: > >#!/bin/sh > >MIXERSTATE=/var/db/mixer-state > >case $1 in start) [ -r $MIXERSTATE ] && /usr/sbin/mixer `cat >$MIXERSTATE` > /dev/null ;; stop) /usr/sbin/mixer -s > $MIXERSTATE > ;; *) echo "usage: `basename $0` {start|stop}" >&2 exit 64 >;; esac > > Mike Meyer http://www.mired.org/home/mwm/ >Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > > > > > >-- >Good Luck, -Neill freebsd@nc.rr.com > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe >freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message