File: amavisd-snmp-subagent_init.sh

package info (click to toggle)
amavisd-new 1%3A2.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 9,200 kB
  • sloc: perl: 33,232; sh: 527; sql: 158; makefile: 8
file content (24 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# PROVIDE: amavisd_snmp_subagent
# REQUIRE: DAEMON
# KEYWORD: shutdown

. /etc/rc.subr

name="amavisd_snmp_subagent"
desc="Amavis SNMP AgentX"
rcvar="amavisd_snmp_subagent_enable"

command=/usr/local/sbin/amavisd-snmp-subagent-zmq
command_interpreter=/usr/bin/perl

load_rc_config $name

: ${amavisd_snmp_subagent_enable:="NO"}
: ${amavisd_snmp_subagent_pidfile:="/var/run/amavisd-snmp-subagent.pid"}
: ${amavisd_snmp_subagent_flags:="-P ${amavisd_snmp_subagent_pidfile}"}

pidfile=${amavisd_snmp_subagent_pidfile}

run_rc_command "$1"