summaryrefslogtreecommitdiff
path: root/mail-filter/amavisd-milter/files/amavisd-milter.initd-r2
blob: bcd27759103b7542f247a3c139028ed20768e391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

name="amavisd-milter"
command="/usr/sbin/${name}"
command_args="${DOPTIONS}"
command_user="amavis"
pidfile="${PIDFILE}"

depend() {
        use logger dns amavisd sendmail
}

start_pre() {
	# needed to avoid potential mi_stop errors
	[ "${RC_CMD}" = "restart" ] && sleep 4
	:
}