Status argument in /etc/init.d/maradns doesn't exist
Cristian Grigoriu
cristian.grigoriu at provus.ro
Wed Jan 6 11:24:12 EST 2010
Hi,
> I would use MaraDns with Hearbeat2 but Maradns doesn't had a status
> information in /etc/init.d/maradns, just the args. start|stop|reload
>
> Could you help me ?
You did not specified the host OS. I'll assume you're running a LSB
compliant Linux distribution.
First include LSB init functions by insertinf this line at the beginning
of your /etc/init.d/maradns script:
. /lib/lsb/init-functions
Then in your case statement:
case "$1" in
start)
...
stop)
...
status)
status_of_proc -p /var/run/maradns.pid /usr/sbin/maradns maradns
;;
esac
> Best regards,
>
> PS : Sorry for my bad english
HTH,
Cristian GRIGORIU
More information about the list
mailing list