Add action flush to stats
This commit is contained in:
parent
4482f47eec
commit
eb8c74d465
@ -41,3 +41,5 @@ cat <<EOF | gearman -h gearmand-srv -p 4730 -f moulette_get
|
|||||||
<param name="rendu">$RENDU</param>
|
<param name="rendu">$RENDU</param>
|
||||||
$LOGINS</process>
|
$LOGINS</process>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
echo
|
||||||
|
@ -19,3 +19,5 @@ cat <<EOF | gearman -h gearmand-srv -p 4730 -f moulette_get
|
|||||||
<param name="to">$1</param>
|
<param name="to">$1</param>
|
||||||
</process>
|
</process>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
echo
|
||||||
|
@ -6,9 +6,24 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ACTION=
|
||||||
|
if [ -n "$1" ]
|
||||||
|
then
|
||||||
|
if [ "$1" = "flush" ]
|
||||||
|
then
|
||||||
|
ACTION=" <param name=\"action\">flush</param>
|
||||||
|
"
|
||||||
|
else
|
||||||
|
echo "Unknown action '$1'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF | gearman -h gearmand-srv -p 4730 -f moulette_get
|
cat <<EOF | gearman -h gearmand-srv -p 4730 -f moulette_get
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<process>
|
<process>
|
||||||
<param name="type">stats</param>
|
<param name="type">stats</param>
|
||||||
</process>
|
$ACTION</process>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
echo
|
||||||
|
Reference in New Issue
Block a user