diff -up e-smith-oidentd-2.2.0/root/etc/rc.d/init.d/oidentd /dev/null --- e-smith-oidentd-2.2.0/root/etc/rc.d/init.d/oidentd 2002-08-28 21:18:29.000000000 +0200 +++ /dev/null 2011-03-12 11:24:25.000000000 +0100 @@ -1,75 +0,0 @@ -#! /bin/sh -# -# identd Start/Stop RFC 1413 identd server -# -# chkconfig: 345 35 65 -# description: The oidentd server provides a means to determine the identity \ -# of a user of a particular TCP connection. Given a TCP port \ -# number pair, it returns a character string which identifies \ -# the owner of that connection on the server's system. -# processname: oidentd -# pidfile: none -# config: /etc/oidentd.conf - -# Source function library. -. /etc/init.d/functions - -# Get config. -. /etc/sysconfig/network - -# Check that networking is up. -if [ ${NETWORKING} = "no" ] -then - exit 0 -fi - -[ -x /usr/sbin/oidentd ] || exit 0 - -IDENTDOPTS="-m -f -u nobody -g nobody" -RETVAL=0 - -start() { - echo -n "Starting identd: " - daemon /usr/sbin/oidentd $IDENTDOPTS - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/oidentd - return $RETVAL -} - -stop() { - echo -n "Stopping identd services: " - killproc oidentd - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/oidentd - return $RETVAL -} - -# See how we were called. -case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status oidentd - ;; - restart|reload) - stop - start - ;; - condrestart) - if [ -f /var/lock/subsys/oidentd ]; then - stop - start - fi - ;; - *) - echo "Usage: oidentd {start|stop|status|restart|reload|condrestart}" - exit 1 -esac - -exit $RETVAL