"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/etc/identd.init" (20 Jan 1999, 400 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # identd control script
    4 #
    5 # You probably want to modify this!
    6 #
    7 
    8 PIDFILE=/etc/identd.pid
    9 IDENTD=/usr/local/sbin/identd
   10 
   11 
   12 if [ -f $PIDFILE ]; then
   13     pid=`cat $PIDFILE`
   14 fi
   15 
   16 case $1 in
   17 'start')
   18     if [ -x $IDENTD ]; then
   19         echo "Starting Identd"
   20         $IDENTD
   21     fi
   22     ;;
   23 
   24 'stop')
   25     if [ "${pid}" != "" ]; then
   26         /usr/bin/kill ${pid}
   27     fi
   28     ;;
   29 
   30 *)
   31     echo 'usage: /etc/init.d/identd {start|stop}'
   32     ;;
   33 esac
   34