source:
VirtualTestbed/scripts/freeDiameter-trig.sh
Last change on this file was 3:0e343724004b, checked in by , 12 years ago | |
---|---|
|
|
File size: 405 bytes |
Line | |
---|---|
1 | #!/bin/bash -x |
2 | |
3 | # Usage: ./$0 [loop] |
4 | # If "loop" is specified on the command line, the signal |
5 | # will be sent every 10 seconds. Otherwise, it is only sent once. |
6 | |
7 | # Note: if the daemon is restarted (changes its PID), this script |
8 | # must also be restarted. |
9 | |
10 | PID=`ps --no-heading -C freeDiameterd -o '%p'`; |
11 | if [ "$1" = "loop" ]; |
12 | then while (true); do sleep 10; kill -USR1 $PID; done; |
13 | else kill -USR1 $PID; |
14 | fi |
15 |
Note: See TracBrowser
for help on using the repository browser.