Date: Sat, 21 Jul 2001 09:36:21 -0500 From: "Todd Reed" <ex279@hotmail.com> To: taylorm@bytecraftsystems.com Cc: freebsd@nc.rr.com, freebsd-questions@freebsd.org Subject: Re: Startup Scripts version 2 Message-ID: <F206ib4g3Sv0YKpDS7h000027e5@hotmail.com>
next in thread | raw e-mail | index | archive | help
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" <freebsd@nc.rr.com>
To: "Todd Reed" <ex279@hotmail.com>
Cc: <freebsd-questions@FreeBSD.ORG>
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 --
>Mike Meyer <mwm@mired.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F206ib4g3Sv0YKpDS7h000027e5>
