File: amavisd-snmp-subagent_init.sh

package info (click to toggle)
amavisd-new 1:2.11.0-6.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 12,432 kB
  • sloc: perl: 33,770; sh: 523; sql: 158; makefile: 8
file content (24 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download | duplicates (3)
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"