Bruce Dubbs wrote:
>> BTW: statusproc() defined in /lib/lsb/init-functions has an "exit 1" just
>> after
>> it prints its Usage statement; shouldn't this be a "return 1" instead?
>
>statusproc is a function to print out a nicely formatted status message
>from the results of pidofproc. It was desi
>deant at hawaii.rr.com wrote:
>
>You are not giving the whole loop:
>
> while true; do
>case "${1}" in
>
>-p)
>pidfile="${2}"
>shift 2
>;;
>
>*)
>
>Bruce Dubbs wrote:
>>Dean Takemori wrote:
>>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?