# HG changeset patch # User Sebastien Decugis # Date 1276839986 -32400 # Node ID 0e343724004b5cfc918e9686bc2f0792eefd64d5 # Parent 9cd6c787c9d4b001cd86f306c4d35a7e8f377639 Added a short documentation diff -r 9cd6c787c9d4 -r 0e343724004b scripts/freeDiameter-trig.sh --- a/scripts/freeDiameter-trig.sh Fri Jun 18 10:37:35 2010 +0900 +++ b/scripts/freeDiameter-trig.sh Fri Jun 18 14:46:26 2010 +0900 @@ -1,5 +1,12 @@ #!/bin/bash -x +# Usage: ./$0 [loop] +# If "loop" is specified on the command line, the signal +# will be sent every 10 seconds. Otherwise, it is only sent once. + +# Note: if the daemon is restarted (changes its PID), this script +# must also be restarted. + PID=`ps --no-heading -C freeDiameterd -o '%p'`; if [ "$1" = "loop" ]; then while (true); do sleep 10; kill -USR1 $PID; done;