mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Add switchd
OK deraadt@
This commit is contained in:
parent
5f35002e2c
commit
bb0982dff1
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.439 2016/10/06 18:56:17 natano Exp $
|
||||
# $OpenBSD: Makefile,v 1.440 2016/10/06 20:20:41 reyk Exp $
|
||||
|
||||
TZDIR= /usr/share/zoneinfo
|
||||
LOCALTIME= Canada/Mountain
|
||||
@ -54,7 +54,7 @@ RCDAEMONS=amd apmd bgpd bootparamd cron dhcpd dhcrelay dvmrpd eigrpd ftpd \
|
||||
lpd mopd mountd mrouted nfsd npppd nsd ntpd ospf6d ospfd \
|
||||
pflogd portmap radiusd rarpd rbootd rebound relayd ripd route6d \
|
||||
rtadvd sasyncd sensorsd slowcgi smtpd sndiod snmpd spamd \
|
||||
spamlogd sshd statd syslogd tftpd tftpproxy unbound \
|
||||
spamlogd sshd statd switchd syslogd tftpd tftpproxy unbound \
|
||||
vmd watchdogd wsmoused xdm ypbind ypldap ypserv
|
||||
|
||||
MISETS= base${OSrev}.tgz comp${OSrev}.tgz man${OSrev}.tgz game${OSrev}.tgz
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: changelist,v 1.113 2016/09/26 06:51:23 ajacoutot Exp $
|
||||
# $OpenBSD: changelist,v 1.114 2016/10/06 20:20:41 reyk Exp $
|
||||
#
|
||||
# List of files which the security script backs up and checks
|
||||
# for modifications.
|
||||
@ -132,6 +132,7 @@
|
||||
/etc/suid_profile
|
||||
/etc/sysctl.conf
|
||||
/etc/syslog.conf
|
||||
/etc/switchd.conf
|
||||
/etc/sysmerge.ignore
|
||||
/etc/ttys
|
||||
/etc/usermgmt.conf
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# $OpenBSD: aliases,v 1.59 2016/09/27 05:31:37 florian Exp $
|
||||
# $OpenBSD: aliases,v 1.60 2016/10/06 20:20:41 reyk Exp $
|
||||
#
|
||||
# Aliases in this file will NOT be expanded in the header from
|
||||
# Mail, but WILL be visible over networks or from /usr/libexec/mail.local.
|
||||
@ -63,6 +63,7 @@ _smtpq: /dev/null
|
||||
_sndio: /dev/null
|
||||
_snmpd: /dev/null
|
||||
_spamd: /dev/null
|
||||
_switchd: /dev/null
|
||||
_syslogd: /dev/null
|
||||
_tcpdump: /dev/null
|
||||
_traceroute: /dev/null
|
||||
|
@ -58,4 +58,5 @@ _vmd:*:107:107::0:0:VM Daemon:/var/empty:/sbin/nologin
|
||||
_tftp_proxy:*:108:108::0:0:tftp proxy daemon:/nonexistent:/sbin/nologin
|
||||
_ftp_proxy:*:109:109::0:0:ftp proxy daemon:/nonexistent:/sbin/nologin
|
||||
_sndiop:*:110:110::0:0:sndio privileged user:/var/empty:/sbin/nologin
|
||||
_switchd:*:111:111::0:0:Switch Daemon:/var/empty:/sbin/nologin
|
||||
nobody:*:32767:32767::0:0:Unprivileged user:/nonexistent:/sbin/nologin
|
||||
|
4
etc/rc
4
etc/rc
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: rc,v 1.488 2016/10/06 19:32:23 reyk Exp $
|
||||
# $OpenBSD: rc,v 1.489 2016/10/06 20:20:41 reyk Exp $
|
||||
|
||||
# System startup script run by init on autoboot or after single-user.
|
||||
# Output and error are redirected to console by init, and the console is the
|
||||
@ -527,7 +527,7 @@ echo 'preserving editor files.'; /usr/libexec/vi.recover
|
||||
run_upgrade_script sysmerge
|
||||
|
||||
echo -n 'starting network daemons:'
|
||||
start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
|
||||
start_daemon ldomd sshd switchd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
|
||||
start_daemon relayd dhcpd dhcrelay mrouted dvmrpd radiusd eigrpd
|
||||
|
||||
if ifconfig lo0 inet6 >/dev/null 2>&1; then
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: rc.conf,v 1.211 2015/12/06 13:51:41 rpe Exp $
|
||||
# $OpenBSD: rc.conf,v 1.212 2016/10/06 20:20:41 reyk Exp $
|
||||
|
||||
# DO NOT EDIT THIS FILE!!
|
||||
#
|
||||
@ -64,6 +64,7 @@ snmpd_flags=NO
|
||||
spamd_flags=NO # also see spamd_black below
|
||||
spamlogd_flags= # use eg. "-i interface" and see spamlogd(8)
|
||||
sshd_flags=
|
||||
switchd_flags=NO
|
||||
syslogd_flags= # add more flags, e.g. "-u -a /chroot/dev/log"
|
||||
tftpd_flags=NO
|
||||
tftpproxy_flags=NO
|
||||
|
14
etc/rc.d/switchd
Normal file
14
etc/rc.d/switchd
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: switchd,v 1.1 2016/10/06 20:20:41 reyk Exp $
|
||||
|
||||
daemon="/usr/sbin/switchd"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
# child will not return a config loading error to the parent
|
||||
rc_pre() {
|
||||
${daemon} -n ${daemon_flags}
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user