pkgsrc/net/smokeping/files/smokeping.sh
adrianp 7e78a7a752 Update smokeping to 1.30
- Add option to build with SpeedyCGI support (USE_SPEEDY)
- Use @RCD_SCRIPTS_SHELL@ instead of hardcoded /bin/sh
- Use REPLACE_PERL instead of patch/sed hack

Closes PR #25549 submitted by me.

Ok'ed wiz@/bouyer@

From the CHANGELOG:

2004/05/12 -- 1.30

* fix nodata_color syntax --tobi

* when inserting unknown values into sorted rtt list, do this on the outside
  ... U:U:1:2:3:U:U and not in the middle. This will make the graphs more
  smokei when there is data loss. --tobi

* config files with different probes should work ... fixed problem introduced
  in 1.29 --tobi

2004/05/08 -- 1.29
* while running, make all die and warn things go to the log file if there is
  one --tobi
* added rawlog option for logging actual gatherd data --tobi (for virtela)
* added alertee option to send a copy of any alert generated to additional
  'perbranche' people --tobi
* cgi should not complain about non existing hosts ... the daemon does that i
  already --tobi
* actually allow empty alerts -- tobi

* added nodata_color property to specify background color for graph when
  when no data is available --  David Hull <hull@dslextreme.com>
2004-06-23 22:25:44 +00:00

41 lines
651 B
Bash
Executable file

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smokeping.sh,v 1.2 2004/06/23 22:25:44 adrianp Exp $
#
# PROVIDE: smokeping
# REQUIRE: DAEMON
name="smokeping"
command="@PREFIX@/bin/smokeping"
pidfile="/var/run/${name}.pid"
cmd=${1:-start}
case ${cmd} in
start)
if [ -x ${command} ]; then
echo "Starting ${name}."
${command} > /dev/null 2>&1
fi
;;
stop)
if [ -f ${pidfile} ]; then
pid=`head -1 ${pidfile}`
echo "Stopping ${name}."
kill ${pid}
fi
;;
restart)
$0 stop
$0 start
;;
status)
if [ -f ${pidfile} ]; then
pid=`head -1 ${pidfile}`
echo "${name} is running as pid ${pid}."
else
echo "${name} is not running."
fi
;;
esac
exit 0