*** runscript.sh Sun May 5 21:32:46 2002 --- runscript.sh.orig Sun May 5 21:33:08 2002 *************** *** 69,79 **** return 1 } - status() { - # return sucess so svc_status works ok - return 0 - } - restart() { svc_restart || return $? } --- 69,74 ---- *************** *** 427,442 **** fi } - svc_status() { - if [ -L ${svcdir}/started/${myservice} ] - then - einfo "status: started" - status - else - eerror "status: stopped" - fi - } - svc_restart() { svc_stop || return $? sleep 1 --- 422,427 ---- *************** *** 654,660 **** query ${arg} ;; status) ! svc_status ;; zap) if [ -e ${svcdir}/started/${myservice} ] --- 639,650 ---- query ${arg} ;; status) ! if [ -L ${svcdir}/started/${myservice} ] ! then ! einfo "status: started" ! else ! eerror "status: stopped" ! fi ;; zap) if [ -e ${svcdir}/started/${myservice} ]