#!/bin/sh
# This is the template file to start or stop any service.
# If you need to add a new service, copy this file and
# modify there.

. /etc/system_config

killproc() {
   pid=`/bin/ps -x | /usr/bin/grep $1 | /usr/bin/awk '{ print $1 }'`
   kill -TERM $pid 2> /dev/null > /dev/null
}

case "$1" in
'start')
   echo -n "$0: Start LPD "
   if [ -x /usr/sbin/lpd ]; then
      echo -n "lpd "
      /usr/sbin/lpd
   fi
   echo
   ;;
'stop')
   echo "$0: Stop LPD"
   killproc /usr/sbin/lpd
   ;;
*)
   echo "Usage: $0 { start | stop }"
   ;;
esac
