Commits

Zhang Huangbin committed 2349575

Oops, Fix incorrect ps parameter on FreeBSD. REALLY.

Comments (0)

Files changed (1)

rc_scripts/iredapd

 check_status() {
     # Usage: check_status pid_number
     PID="${1}"
-    l=$(ps -p ${PID} | wc -l)
+    l=$(ps -p ${PID} | wc -l | awk '{print $1}')
     if [ X"$l" == X"2" ]; then
         echo "running"
     else