#!/bin/sh
########################################################################
# Begin inetd
#
# Description : Start inetd
#
# Authors     : 
#               
#
# Version     : Plamo 7.x
#
########################################################################

### BEGIN INIT INFO
# Provides:          inetd
# Required-Start:    
# Should-Start:
# Required-Stop:     
# Should-Stop:
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts inetd
# Description:       inetd super daemon
### END INIT INFO

. /lib/lsb/init-functions

case "$1" in
   start)
      log_info_msg "Starting inetd server..."
      start_daemon /usr/sbin/inetd
      evaluate_retval
      ;;

   stop)
      log_info_msg "Stopping inetd server..."
      killproc /usr/sbin/inetd
      evaluate_retval
      ;;

   restart)
      $0 stop
      sleep 1
      $0 start
      ;;

   status)
      statusproc /usr/sbin/inetd
      ;;

   *)
      echo "Usage: $0 {start|stop|restart|status}"
      exit 1
      ;;
esac

# End /etc/init.d/inetd

