You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
530 B

#!/bin/sh
NINFOD=@prefix@/sbin/ninfod
PID=/var/run/ninfod.pid
if ! [ -x $NINFOD ]; then
exit 0
fi
case "$1" in
start)
echo -n "Starting node infomation daemon:"
echo -n " ninfod" ;
$NINFOD
echo "."
;;
stop)
echo -n "Stopping node infomation daemon:"
echo -n " ninfod" ;
kill `cat $PID`
echo "."
;;
restart)
echo -n "Restarting node information daemon:"
echo -n " ninfod"
kill `cat $PID`
$NINFOD
echo "."
;;
*)
echo "Usage: /etc/init.d/ninfod {start|stop|restart}"
exit 1
;;
esac
exit 0