diff options
author | Elias Werberich <elias@werberich.de> | 2017-07-30 21:18:45 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-20 08:58:09 +0000 |
commit | ba013bb188ce088b03a708fdcc7e2226c36fd29f (patch) | |
tree | cb7718d6625b6955300a0ede36b5ffd2717174f4 /testing/amavisd-milter/amavisd-milter.initd | |
parent | 8819810f3e403062bd6a1943fb6a64a825ed802d (diff) | |
download | aports-ba013bb188ce088b03a708fdcc7e2226c36fd29f.tar.bz2 aports-ba013bb188ce088b03a708fdcc7e2226c36fd29f.tar.xz |
testing/amavisd-milter: new aport
URL: http://amavisd-milter.sourceforge.net/
Desc: sendmail milter for amavisd-new using the AM.PDP protocol
Diffstat (limited to 'testing/amavisd-milter/amavisd-milter.initd')
-rw-r--r-- | testing/amavisd-milter/amavisd-milter.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/amavisd-milter/amavisd-milter.initd b/testing/amavisd-milter/amavisd-milter.initd new file mode 100644 index 0000000000..c76cd259ef --- /dev/null +++ b/testing/amavisd-milter/amavisd-milter.initd @@ -0,0 +1,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" +} |