summaryrefslogtreecommitdiff
blob: 6343d4255c4c0bb289bd0d89afcaf47b0eae9efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

command="/usr/sbin/amavis-mc"
pidfile="/run/${RC_SVCNAME}.pid"

# Let OpenRC background this, because otherwise it will write its PID
# file after dropping privileges which presents a security issue when
# we go to `kill` the thing as root.
command_args="-f"
command_background="true"
command_user="amavis:amavis"

depend() {
  use logger
  before amavisd-new snmpd
}