Files
pkgsrc-ng/net/snmptt/files/snmptt.sh
2013-09-26 17:14:40 +02:00

25 lines
481 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: snmptt.sh,v 1.1.1.1 2011/04/13 10:23:47 bouyer Exp $
#
# PROVIDE: snmptt
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="snmptt"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
command_interpreter="@PREFIX@/bin/perl"
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command}
fi