Commits

Zhang Huangbin committed e7fce30

Fix ps parameter on FreeBSD.

  • Participants
  • Parent commits cd4f43e

Comments (0)

Files changed (2)

 * Check log type and log into correct logger handler.
 * Per-maillist restrictions:
-    - Verify recipient address is mail list.
     - If access policy is 'membersOnly', how about a fake email address?
     - Handle multiple access policies.
 

rc_scripts/iredapd

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