aboutsummaryrefslogtreecommitdiffstats
path: root/testing/amavisd-milter/amavisd-milter.initd
blob: c76cd259ef9466325a062649bb65b228204118fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run

pidfile="/var/amavis/amavisd-milter.pid"

name=amavisd-milter
command="/usr/sbin/$name"
command_args="-f -B -w $workdir -s $socket_milter -S $socket_amavis -m $connections"
command_background="yes"

start_stop_daemon_args="--user $user:$group"

depend() {
	need amavisd
	need net
	after firewall
}

start_post() {
	chmod 0770 "$socket_milter"
}