New package: netkit-rwho
PATCH 1/2 New package: netkit-rwho
This adds rwho and rwhod
Signed-off-by Armin Kuster <[email protected]>
--- .../recipes-netkit/netkit-rwho/files/rwhod | 71 ++++++++++++++++++ .../recipes-netkit/netkit-rwho/files/rwhod.default | 2 + .../recipes-netkit/netkit-rwho/netkit-rwho_0.17.bb | 85 ++++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100755 meta-networking/recipes-netkit/netkit-rwho/files/rwhod create mode 100644 meta-networking/recipes-netkit/netkit-rwho/files/rwhod.default create mode 100644 meta-networking/recipes-netkit/netkit-rwho/netkit-rwho_0.17.bb
meta-networking/recipes-netkit/netkit-rwho/files/rwhod new file +71 -0
@@ -0,0 +1,71 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: rwhod +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Server for rwho and ruptime services +### END INIT INFO + +PATH=/sbin:/bin:/usr/bin:/usr/sbin + +DAEMON=/usr/sbin/rwhod +PIDFILE=/var/run/rwhod.pid +CONF_FILE="/etc/default/rwhod" +DESC="Who daemon " +# default options. Change them in /etc/default/rwhod +RWHOD_OPTIONS="-b" + +# rwhod init.d script for ntpdc from ntp.isc.org +test -f $DAEMON || exit 0 + +# Source function library. +. /etc/init.d/functions + +[ -r $CONF_FILE ] && . $CONF_FILE + +startdaemon(){ + echo -n "Starting $DESC" " rwhod " + start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON -- $RWHOD_OPTIONS + echo "done" +} +stopdaemon(){ + echo -n "Stopping $DESC" " rwhod " + start-stop-daemon --stop --quiet --oknodo --exec $DAEMON + echo "done" +} + +case "$1" in + start) + startdaemon + ;; + stop) + stopdaemon + ;; + force-reload) + stopdaemon + startdaemon + ;; + restart) + stopdaemon + sleep 1 + startdaemon + ;; + reload) + stopdaemon + sleep 1 + startdaemon + ;; + status) + status /usr/sbin/rwhod; + exit $? + ;; + *) + echo "Usage: rwhod { start | stop | status | restart | reload }" >&2 + exit 1 + ;; +esac + +exit 0
meta-networking/recipes-netkit/netkit-rwho/files/rwhod.default new file +2 -0
@@ -0,0 +1,2 @@ +#Options for the rwhod daemon. +RWHOD_OPTIONS="-b"
meta-networking/recipes-netkit/netkit-rwho/netkit-rwho_0.17.bb new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 2/2 Maintainers list: add self for recipes-netkit
Signed-off-by Armin Kuster <[email protected]>
--- meta-networking/MAINTAINERS | 4 ++++ 1 file changed, 4 insertions(+)
meta-networking/MAINTAINERS +4 -0
@@ -29,3 +29,7 @@ COMMON M: Joe MacDonald <[email protected]> F: conf F: recipes-* + +NETKIT +M: Armin Kuster <[email protected]> +F: recipes-netkit
Signature · 1 line
1.9.1