Skip to content

Commit

Permalink
Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
Browse files Browse the repository at this point in the history
from ajacoutot@.

ok deraadt ajacoutot
  • Loading branch information
ratchov committed Dec 9, 2011
1 parent d351df7 commit 4b02bc8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 24 deletions.
6 changes: 3 additions & 3 deletions etc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.311 2011/10/29 14:29:33 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.312 2011/12/09 14:52:26 ratchov Exp $

TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
Expand Down Expand Up @@ -48,14 +48,14 @@ BIN1+= wsconsctl.conf
BIN2= motd

# -r-xr-xr-x
RCDAEMONS= amd apmd aucat bgpd bootparamd btd cron dhcpd dhcrelay dvmrpd \
RCDAEMONS= amd apmd bgpd bootparamd btd cron dhcpd dhcrelay dvmrpd \
ftpd ftpproxy hostapd hotplugd httpd identd ifstated iked \
inetd isakmpd ldapd ldattach ldpd lpd mopd mrouted named nsd \
ntpd ospfd ospf6d portmap pflogd rarpd rbootd relayd ripd \
route6d rtadvd rtsold rwhod sasyncd sendmail sensorsd smtpd \
snmpd spamd sshd syslogd watchdogd wsmoused xdm ypbind ypldap \
yppasswdd ypserv kdc kadmind kpasswdd nfsd mountd lockd statd \
spamlogd
spamlogd sndiod

MISETS= base${OSrev}.tgz comp${OSrev}.tgz \
man${OSrev}.tgz game${OSrev}.tgz etc${OSrev}.tgz
Expand Down
4 changes: 2 additions & 2 deletions etc/rc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.396 2011/10/13 07:54:06 ajacoutot Exp $
# $OpenBSD: rc,v 1.397 2011/12/09 14:52:26 ratchov Exp $

# System startup script run by init on autoboot
# or after single-user.
Expand Down Expand Up @@ -505,7 +505,7 @@ fi

start_daemon hostapd rwhod lpd sendmail smtpd httpd ftpd ftpproxy
start_daemon identd inetd rarpd bootparamd rbootd mopd popa3d
start_daemon spamd spamlogd kdc kadmind kpasswdd aucat
start_daemon spamd spamlogd kdc kadmind kpasswdd sndiod
echo '.'

if [ X"${spamd_flags}" != X"NO" ]; then
Expand Down
7 changes: 4 additions & 3 deletions etc/rc.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.163 2011/10/07 05:54:48 ajacoutot Exp $
# $OpenBSD: rc.conf,v 1.164 2011/12/09 14:52:26 ratchov Exp $

# set these to "NO" to turn them off. otherwise, they're used as flags
ldpd_flags=NO # for normal use: ""
Expand Down Expand Up @@ -44,7 +44,7 @@ ifstated_flags=NO # for normal use: ""
relayd_flags=NO # for normal use: ""
snmpd_flags=NO # for normal use: ""
smtpd_flags=NO # for normal use: ""
aucat_flags=NO # for normal use: ""
sndiod_flags="" # for normal use: ""
ldapd_flags=NO # for normal use: ""
inetd_flags="" # for normal use: ""
rwhod_flags=NO # for normal use: ""
Expand Down Expand Up @@ -122,7 +122,7 @@ local_rcconf="/etc/rc.conf.local"

unset inetd_flags rwhod_flags portmap_flags kdc_flags kadmind_flags
unset kpasswdd_flags btd_flags nfsd_flags mountd_flags lockd_flags
unset statd_flags amd_flags ypbind_flags
unset statd_flags amd_flags ypbind_flags sndiod_flags

[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line

Expand Down Expand Up @@ -152,3 +152,4 @@ fi
: ${statd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
: ${amd_flags=$([ X"${amd-NO}" = XYES ] || echo NO)}
: ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}
: ${sndiod_flags=${aucat_flags-}}
16 changes: 0 additions & 16 deletions etc/rc.d/aucat

This file was deleted.

9 changes: 9 additions & 0 deletions etc/rc.d/sndiod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
#
# $OpenBSD: sndiod,v 1.1 2011/12/09 14:52:27 ratchov Exp $

daemon="/usr/bin/sndiod"

. /etc/rc.d/rc.subr

rc_cmd $1

0 comments on commit 4b02bc8

Please sign in to comment.