aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavisd-new/amavisd.initd
diff options
context:
space:
mode:
authorElias Werberich <elias@werberich.de>2017-07-31 09:50:39 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-09-01 09:19:56 +0000
commit2ee0c2d51ba823872d385d98f03ac9395ce3b1e1 (patch)
treeb73c30ef5fb8b880b845aba9612436eaceb2633b /main/amavisd-new/amavisd.initd
parentc7be5ce15555e9d8429bfc2546ed72a51b04f80b (diff)
downloadaports-2ee0c2d51ba823872d385d98f03ac9395ce3b1e1.tar.bz2
aports-2ee0c2d51ba823872d385d98f03ac9395ce3b1e1.tar.xz
main/amavisd-new: modernize openrc scripts
Diffstat (limited to 'main/amavisd-new/amavisd.initd')
-rw-r--r--main/amavisd-new/amavisd.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/amavisd-new/amavisd.initd b/main/amavisd-new/amavisd.initd
new file mode 100644
index 0000000000..41f731d996
--- /dev/null
+++ b/main/amavisd-new/amavisd.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+
+pidfile="/run/$RC_SVCNAME.pid"
+
+name="amavisd"
+command="/usr/sbin/$name"
+command_args="-c /etc/amavisd.conf foreground"
+command_background="yes"
+
+start_stop_daemon_args="--user $user:$group"
+
+depend() {
+ need net
+ use logger
+ use antivirus
+ before mta
+}