lfs/lib/services/init-functions defines statusproc() with this snippit
to process arguments:

  while true; do
    case "${1}" in

        -p)
            pidfile="${2}"
            shift 2
            ;;
    esac
  done


Isn't this broken?  I notice that the statusproc() defined in the
(deprecated) lfs/init.d/functions includes both an unknown option 
error message and a break out of the loop:

  while true;
  do
    case "${1}" in
       -p)
          pidfile="${2}"
          shift2
          ;;
       -*)
          log_failure_msg "Unknown Option: ${1}"
          return 2
          ;;
       *)
          break
          ;;
    esac
  done


-dean takemori

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to