freebsd-ports/sysutils/nagios-statd/files/nagios-statd.sh.sample
Pav Lucistnik fe31eb5e25 - Update to 3.10
PR:		ports/65507
Submitted by:	Jim Shewmaker <jims@bluenotch.com> (maintainer)
2004-04-17 22:15:42 +00:00

21 lines
329 B
Bash

#!/bin/sh
# $FreeBSD$
case "${1}" in
start)
nagios-statd
echo -n " nagios-statd"
;;
stop)
kill -3 `ps -x | grep nagios-statd | grep python | awk '{print $1}'`
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
exit 0