Date: Fri, 1 Jun 2007 15:12:28 +1000 From: Norberto Meijome <freebsd@meijome.net> To: gmoniey <gmoniey@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: startup / shutdown script (rc.d) Message-ID: <20070601151228.77a72a12@localhost> In-Reply-To: <10906324.post@talk.nabble.com> References: <10902043.post@talk.nabble.com> <20070601131230.380039e8@localhost> <10906324.post@talk.nabble.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 May 2007 21:05:17 -0700 (PDT) gmoniey <gmoniey@gmail.com> wrote: > I actually looked at the apache one, and it seemed so complicated, there > were 2 files for it, one of which was relatively short and the other was > significantly long. > > Now dont get me wrong, they aren't beyond comprehension, but i simply dont > have the time right now to figure them out. > > I dont quite see how something as simple as "apachectl start" is expanded > into so many lines. > > maybe i will get some time in the near future to understand it... fair enough. How's this for a simpler script? --- #!/bin/sh RTOOL=/usr/local/bin/radeontool case "$1" in start) if [ -x $RTOOL ]; then echo -n ' Radeon' $RTOOL light $RTOOL light on $RTOOL light $RTOOL dac $RTOOL dac off $RTOOL dac fi ;; stop) ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac ----- it doesnt read anything from rc.conf at all (which is where some of the extra stuff is) _________________________ {Beto|Norberto|Numard} Meijome "Too bad ignorance isn't painful." Don Lindsay I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070601151228.77a72a12>