File: amavis-mc_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 (32 lines) | stat: -rwxr-xr-x 627 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
25
26
27
28
29
30
31
32
#!/bin/sh

# PROVIDE: amavis_mc
# REQUIRE: LOGIN
# BEFORE: amavisd
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable amavis-mc:
#
#amavis_mc_enable="YES"

. /etc/rc.subr

name="amavis_mc"
desc="Amavis status monitoring and SNMP statistics services"
rcvar="amavis_mc_enable"

command="/usr/local/sbin/amavis-mc"
command_interpreter="/usr/bin/perl"
pidfile="/var/amavis/amavis-mc.pid"

required_files="/usr/local/sbin/amavis-services"

load_rc_config $name

: ${amavis_mc_enable:="NO"}
: ${amavis_mc_flags:="-P ${pidfile}"}
: ${amavis_mc_user:="vscan"}
: ${amavis_mc_group:="vscan"}

run_rc_command "$1"