blob: e6dcbbbb6490c0289b9d82c3b8c8de292db380f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!@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
|