daemon scripts.
discussed with and OK aja@
OK tb
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: amd,v 1.7 2015/07/15 13:50:54 ajacoutot Exp $
+# $OpenBSD: amd,v 1.8 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/amd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: apmd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: apmd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/apmd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: bgpd,v 1.3 2016/02/07 20:56:48 sthen Exp $
+# $OpenBSD: bgpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/bgpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: bootparamd,v 1.2 2011/07/08 02:15:34 robert Exp $
+# $OpenBSD: bootparamd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rpc.bootparamd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: cron,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: cron,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/cron"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: dhcpd,v 1.2 2011/07/08 04:29:54 ajacoutot Exp $
+# $OpenBSD: dhcpd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/dhcpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: dhcrelay,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: dhcrelay,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/dhcrelay"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: dhcrelay6,v 1.1 2017/03/17 17:57:40 rzalamena Exp $
+# $OpenBSD: dhcrelay6,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/dhcrelay6"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: dvmrpd,v 1.3 2016/02/07 21:00:16 sthen Exp $
+# $OpenBSD: dvmrpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/dvmrpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: eigrpd,v 1.3 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: eigrpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/eigrpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ftpd,v 1.3 2011/12/21 09:26:29 ajacoutot Exp $
+# $OpenBSD: ftpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/libexec/ftpd -D"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ftpproxy,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: ftpproxy,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ftp-proxy"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ftpproxy6,v 1.1 2015/09/12 14:48:06 sthen Exp $
+# $OpenBSD: ftpproxy6,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ftp-proxy -6"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: hostapd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: hostapd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/hostapd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: hotplugd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: hotplugd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/hotplugd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: httpd,v 1.5 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: httpd,v 1.6 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/httpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: identd,v 1.7 2013/12/11 16:25:48 jca Exp $
+# $OpenBSD: identd,v 1.8 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/identd"
daemon_flags="-e"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ifstated,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: ifstated,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ifstated"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: iked,v 1.3 2015/12/19 13:45:12 ajacoutot Exp $
+# $OpenBSD: iked,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/iked"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: inetd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: inetd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/inetd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: isakmpd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: isakmpd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/isakmpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: iscsid,v 1.1 2014/07/13 12:07:11 claudio Exp $
+# $OpenBSD: iscsid,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/iscsid"
control="/usr/sbin/iscsictl"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ldapd,v 1.2 2011/09/16 10:13:24 robert Exp $
+# $OpenBSD: ldapd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ldapd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ldattach,v 1.2 2011/07/08 02:15:34 robert Exp $
+# $OpenBSD: ldattach,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/ldattach"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ldomd,v 1.1 2012/11/04 17:12:36 kettenis Exp $
+# $OpenBSD: ldomd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ldomd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ldpd,v 1.2 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: ldpd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ldpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: lockd,v 1.1 2011/07/08 00:54:04 ajacoutot Exp $
+# $OpenBSD: lockd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rpc.lockd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: lpd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: lpd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/lpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: mopd,v 1.3 2011/09/19 20:42:24 ajacoutot Exp $
+# $OpenBSD: mopd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/mopd"
daemon_flags="-a"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: mountd,v 1.6 2015/12/26 09:55:15 ajacoutot Exp $
+# $OpenBSD: mountd,v 1.7 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/mountd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: mrouted,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: mrouted,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/mrouted"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: nfsd,v 1.6 2014/08/22 08:10:38 jsg Exp $
+# $OpenBSD: nfsd,v 1.7 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/nfsd"
daemon_flags="-tun 4"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: npppd,v 1.2 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: npppd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/npppd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: nsd,v 1.9 2014/12/29 11:17:05 ajacoutot Exp $
+# $OpenBSD: nsd,v 1.10 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/nsd-control"
daemon_flags="-c /var/nsd/etc/nsd.conf"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ntpd,v 1.3 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: ntpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ntpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ospf6d,v 1.2 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: ospf6d,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ospf6d"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ospfd,v 1.2 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: ospfd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ospfd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: pflogd,v 1.2 2011/07/08 21:42:52 robert Exp $
+# $OpenBSD: pflogd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/pflogd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: portmap,v 1.2 2011/07/07 05:20:38 ajacoutot Exp $
+# $OpenBSD: portmap,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/portmap"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: radiusd,v 1.1 2015/08/03 04:19:25 yasuoka Exp $
+# $OpenBSD: radiusd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/radiusd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: rarpd,v 1.3 2011/09/19 20:42:24 ajacoutot Exp $
+# $OpenBSD: rarpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rarpd"
daemon_flags="-a"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: rbootd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: rbootd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rbootd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: rebound,v 1.1 2015/11/30 23:35:30 jturner Exp $
+# $OpenBSD: rebound,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rebound"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: relayd,v 1.3 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: relayd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/relayd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ripd,v 1.2 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: ripd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ripd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: route6d,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: route6d,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/route6d"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: rtadvd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: rtadvd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rtadvd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: sasyncd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: sasyncd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/sasyncd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: sensorsd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: sensorsd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/sensorsd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: slaacd,v 1.2 2017/06/03 10:00:29 florian Exp $
+# $OpenBSD: slaacd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/sbin/slaacd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: slowcgi,v 1.1 2013/06/01 14:06:20 naddy Exp $
+# $OpenBSD: slowcgi,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/slowcgi"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: smtpd,v 1.6 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: smtpd,v 1.7 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/smtpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: sndiod,v 1.4 2016/04/28 09:15:16 ajacoutot Exp $
+# $OpenBSD: sndiod,v 1.5 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/bin/sndiod"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: snmpd,v 1.3 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: snmpd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/snmpd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: spamd,v 1.8 2017/03/23 10:10:54 ajacoutot Exp $
+# $OpenBSD: spamd,v 1.9 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/libexec/spamd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: spamlogd,v 1.2 2011/08/08 17:13:31 robert Exp $
+# $OpenBSD: spamlogd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/libexec/spamlogd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: sshd,v 1.3 2015/07/15 13:50:54 ajacoutot Exp $
+# $OpenBSD: sshd,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/sshd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: statd,v 1.1 2011/07/08 00:54:04 ajacoutot Exp $
+# $OpenBSD: statd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rpc.statd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: switchd,v 1.1 2016/10/06 20:20:41 reyk Exp $
+# $OpenBSD: switchd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/switchd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: syslogd,v 1.4 2014/07/18 18:20:42 deraadt Exp $
+# $OpenBSD: syslogd,v 1.5 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/syslogd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: tftpd,v 1.2 2012/07/07 09:35:36 ajacoutot Exp $
+# $OpenBSD: tftpd,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/tftpd"
daemon_flags="/tftpboot"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: tftpproxy,v 1.2 2015/07/15 13:50:54 ajacoutot Exp $
+# $OpenBSD: tftpproxy,v 1.3 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/tftp-proxy"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: unbound,v 1.3 2015/07/19 17:31:21 sthen Exp $
+# $OpenBSD: unbound,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/unbound"
daemon_flags="-c /var/unbound/etc/unbound.conf"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: vmd,v 1.4 2016/02/02 17:51:11 sthen Exp $
+# $OpenBSD: vmd,v 1.5 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/vmd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: watchdogd,v 1.1 2011/07/06 18:55:36 robert Exp $
+# $OpenBSD: watchdogd,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/watchdogd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: wsmoused,v 1.1 2011/07/07 22:23:56 robert Exp $
+# $OpenBSD: wsmoused,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/wsmoused"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: xenodm,v 1.1 2017/02/26 16:51:18 matthieu Exp $
+# $OpenBSD: xenodm,v 1.2 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/X11R6/bin/xenodm"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ypbind,v 1.7 2017/05/27 19:55:48 ajacoutot Exp $
+# $OpenBSD: ypbind,v 1.8 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ypbind"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ypldap,v 1.3 2015/07/15 13:50:54 ajacoutot Exp $
+# $OpenBSD: ypldap,v 1.4 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ypldap"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: yppasswdd,v 1.4 2011/07/08 04:29:54 ajacoutot Exp $
+# $OpenBSD: yppasswdd,v 1.5 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/rpc.yppasswdd"
-#!/bin/sh
+#!/bin/ksh
#
-# $OpenBSD: ypserv,v 1.4 2011/10/06 06:47:50 ajacoutot Exp $
+# $OpenBSD: ypserv,v 1.5 2018/01/11 19:52:12 rpe Exp $
daemon="/usr/sbin/ypserv"