aboutsummaryrefslogtreecommitdiffstats
path: root/main/amavis/amavisd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/amavis/amavisd.initd')
-rw-r--r--main/amavis/amavisd.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/amavis/amavisd.initd b/main/amavis/amavisd.initd
new file mode 100644
index 0000000000..41f731d996
--- /dev/null
+++ b/main/amavis/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
+}