summaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2011-07-07 23:29:46 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2011-07-07 23:29:46 +0000
commit0b1496c39f25b2b1a71e81ff8010b003010bdaf1 (patch)
tree61a51c4c449a24574f3e35fd8047dc69dc1cbe2f /etc/rc.d
parenta9ca55af4d5cab3052c12f96f9822cfb7f217f8d (diff)
add scripts for aucat and spamd and switch rc to use them
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/aucat15
-rw-r--r--etc/rc.d/spamd16
2 files changed, 31 insertions, 0 deletions
diff --git a/etc/rc.d/aucat b/etc/rc.d/aucat
new file mode 100644
index 00000000000..e4eca01445e
--- /dev/null
+++ b/etc/rc.d/aucat
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $OpenBSD: aucat,v 1.1 2011/07/07 23:29:45 robert Exp $
+
+daemon="/usr/bin/aucat"
+
+. /etc/rc.d/rc.subr
+
+rc_reload=NO
+
+rc_pre() {
+ daemon_flags="-l ${daemon_flags}"
+}
+
+rc_cmd $1
diff --git a/etc/rc.d/spamd b/etc/rc.d/spamd
new file mode 100644
index 00000000000..fbf67898ac4
--- /dev/null
+++ b/etc/rc.d/spamd
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# $OpenBSD: spamd,v 1.1 2011/07/07 23:29:45 robert Exp $
+
+daemon="/usr/libexec/spamd"
+
+. /etc/rc.d/rc.subr
+
+pexp="spamd: \[priv\]"
+
+rc_pre() {
+ [ X"${spamd_black}" != X"NO" ] && \
+ daemon_flags="-b ${daemon_flags}"
+}
+
+rc_cmd $1