diff options
Diffstat (limited to 'mail-filter/amavisd-new/files/amavisd-snmp.initd')
-rw-r--r-- | mail-filter/amavisd-new/files/amavisd-snmp.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mail-filter/amavisd-new/files/amavisd-snmp.initd b/mail-filter/amavisd-new/files/amavisd-snmp.initd new file mode 100644 index 0000000000..e42fe47e03 --- /dev/null +++ b/mail-filter/amavisd-new/files/amavisd-snmp.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +name="amavisd-snmp" +pidfile="/run/amavis/${name}.pid" +command="/usr/sbin/${name}-subagent" +command_args="${amavis_snmp_args} -P ${pidfile}" +start_stop_daemon_args="--interpreted" + +depend() { + use logger + before amavisd-new snmpd +} + +start_pre() { + if [[ -x ${command}-zmq && ! $amavisd_snmp_command ]]; then + command="${command}-zmq" + fi +} |