Browse Source

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's

point of view.
mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk
OPENBSD_5_3
dlg 12 years ago
parent
commit
4f6e837104
4 changed files with 18 additions and 5 deletions
  1. +2
    -2
      src/etc/Makefile
  2. +3
    -2
      src/etc/rc
  3. +2
    -1
      src/etc/rc.conf
  4. +11
    -0
      src/etc/rc.d/tftpproxy

+ 2
- 2
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.319 2012/06/20 18:33:58 matthew Exp $
# $OpenBSD: Makefile,v 1.320 2012/08/20 12:37:52 dlg Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
@ -55,7 +55,7 @@ RCDAEMONS= amd apmd bgpd bootparamd cron dhcpd dhcrelay dvmrpd \
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 sndiod popa3d tftpd
spamlogd sndiod popa3d tftpd tftpproxy
MISETS= base${OSrev}.tgz comp${OSrev}.tgz \
man${OSrev}.tgz game${OSrev}.tgz etc${OSrev}.tgz


+ 3
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.400 2012/04/06 15:11:30 jsing Exp $
# $OpenBSD: rc,v 1.401 2012/08/20 12:37:52 dlg Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -493,7 +493,8 @@ if ifconfig lo0 inet6 >/dev/null 2>&1; then
fi
fi
start_daemon hostapd rwhod lpd sendmail smtpd httpd ftpd ftpproxy tftpd
start_daemon hostapd rwhod lpd sendmail smtpd
start_daemon httpd ftpd ftpproxy tftpd tftpproxy
start_daemon identd inetd rarpd bootparamd rbootd mopd popa3d
start_daemon spamd spamlogd kdc kadmind kpasswdd sndiod
echo '.'


+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.167 2012/04/01 18:32:51 deraadt Exp $
# $OpenBSD: rc.conf,v 1.168 2012/08/20 12:37:52 dlg Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
ldpd_flags=NO # for normal use: ""
@ -56,6 +56,7 @@ kpasswdd_flags=NO # for normal use: ""
btd_flags=NO # for normal use: ""
amd_flags=NO # for normal use: ""
tftpd_flags=NO # for normal use: "[chroot dir]"
tftpproxy_flags=NO # for normal use: ""
# use -u to disable chroot, see httpd(8)
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))


+ 11
- 0
src/etc/rc.d/tftpproxy View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: tftpproxy,v 1.1 2012/08/20 12:37:53 dlg Exp $
daemon="/usr/sbin/tftp-proxy"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1

Loading…
Cancel
Save