* Steffen Joeris <[EMAIL PROTECTED]> [20060523 20:26]:
> > JFYI: I don't have the appropriate hardware for mpt-status.

> > # invoke-rc.d mpt-statusd start
> > Starting mpt-status monitor: mpt-statusd/etc/init.d/mpt-statusd: line 119:
> > kill: (4319) - No such process invoke-rc.d: initscript mpt-statusd, action
> > "start" failed.

> > # rm /var/run/mpt-statu*
> > # /etc/init.d/mpt-statusd start
> > Starting mpt-status monitor: mpt-statusd
> > # echo $?
> > 1
> Bah I missed that :(

> Hmm a good question how should mpt-status behave on hardware where it can't 
> work :(
> Thanks for pointing me to that.

According to README.Debian the mptctl module is necessary for
mpt-statusd, so how about something like:

if ! grep -q mptctl /proc/modules 2>/dev/null ; then
  log_failure_msg "The mptctl module ist missing. Make sure..."
  log_end_msg 1
  exit 1
fi

regards,
-mika-

Attachment: pgpZk0EQUxRZG.pgp
Description: PGP signature

Reply via email to