#! /bin/sh # # identd Start/Stop RFC 1413 identd server # # chkconfig: 345 35 65 # description: The identd 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: identd # pidfile: /var/run/identd.pid # config: /etc/identd.conf # ### BEGIN INIT INFO # Provides: identd # Required-Start: $network # Required-Stop: $network # Default-Start: 3 4 5 # Short-Description: Start/Stop RFC 1413 identd server # Description: The identd 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. ### END INIT INFO # Source function library. . /etc/rc.d/init.d/functions # Get config. . /etc/sysconfig/network # Check that networking is up. if [ ${NETWORKING} = "no" ] then exit 0 fi [ -x /usr/sbin/identd ] || exit 0 IDENTDOPTS="-e" RETVAL=0 # See how we were called. case "$1" in start) gprintf "Starting identd: " daemon identd $IDENTDOPTS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/identd ;; stop) gprintf "Stopping identd services: " killproc identd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/identd ;; status) status identd RETVAL=$? ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) gprintf "Usage: identd {start|stop|status|restart|reload}\n" exit 1 esac exit $RETVAL