[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: better init.d/* : who carres ?

On Wed, 24 Aug 2005, Peter Palfrader wrote:
> > mysqld_get_param () {
> >     /usr/sbin/mysqld --print-defaults |
> >     sed -ne "s/^.*--$1=\\([^ ]\\+\\).*\$/\\1/p"
> > }
> And harder to read.  Making scripts more complex and harder to read for

Huh?  Anyone that has problem with that sed expression really has no
business touching initscripts IMHO.

Whether it is worth it or not speed-wise, is something else.  But the less
external dependencies you have in initscripts, the better IMHO.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: