Navigation


source: VirtualTestbed/scripts/freeDiameter-trig.sh

Last change on this file was 3:0e343724004b, checked in by Sebastien Decugis <sdecugis@nict.go.jp>, 11 years ago

Added a short documentation

  • Property exe set to *
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
10PID=`ps --no-heading -C freeDiameterd -o '%p'`;
11if [ "$1" = "loop" ];
12then while (true); do sleep 10; kill -USR1 $PID; done;
13else kill -USR1 $PID;
14fi
15
Note: See TracBrowser for help on using the repository browser.