diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2011-09-16 10:11:21 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2011-09-16 10:11:21 +0000 |
commit | f49eba8b1fdc1cfcb2d4387582dd9a03fe25e817 (patch) | |
tree | 67e6042f59bccc9a1b735a82c81f70e0629b4fd7 /etc | |
parent | dad34d806049029cc43cb587e0774fb04964bbbb (diff) |
Add a script for popa3d to support running it outside of inetd.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 4 | ||||
-rw-r--r-- | etc/rc.conf | 5 | ||||
-rw-r--r-- | etc/rc.d/popa3d | 11 |
3 files changed, 17 insertions, 3 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.392 2011/07/28 19:09:16 halex Exp $ +# $OpenBSD: rc,v 1.393 2011/09/16 10:11:20 robert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -504,7 +504,7 @@ fi start_daemon hostapd rwhod lpd ldapd sendmail smtpd httpd ftpd start_daemon ftpproxy identd inetd rarpd bootparamd rbootd mopd -start_daemon spamd spamlogd kdc kadmind kpasswdd aucat +start_daemon popa3d spamd spamlogd kdc kadmind kpasswdd aucat echo '.' if [ X"${spamd_flags}" != X"NO" ]; then diff --git a/etc/rc.conf b/etc/rc.conf index afcde804d1d..4248dea7490 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: rc.conf,v 1.160 2011/07/24 15:33:41 fgsch Exp $ +# $OpenBSD: rc.conf,v 1.161 2011/09/16 10:11:20 robert Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags ldpd_flags=NO # for normal use: "" @@ -70,6 +70,9 @@ ftpd_flags=NO # for non-inetd use: "-D" # Set to NO if identd is running out of inetd identd_flags=NO # for non-inetd use: "-b -elo" +# Set to NO if popa3d is running out of inetd +popa3d_flags=NO # for non-inetd use: "-D" + # On some architectures, you must also disable console getty in /etc/ttys xdm_flags=NO # for normal use: "" diff --git a/etc/rc.d/popa3d b/etc/rc.d/popa3d new file mode 100644 index 00000000000..dfe37a173d2 --- /dev/null +++ b/etc/rc.d/popa3d @@ -0,0 +1,11 @@ +#!/bin/sh +# +# $OpenBSD: popa3d,v 1.1 2011/09/16 10:11:20 robert Exp $ + +daemon="/usr/sbin/popa3d" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_cmd $1 |