From a8c06bc2152a66d8221cacb97e93f0d665462322 Mon Sep 17 00:00:00 2001 From: Jon Bonilla Date: Thu, 14 Jul 2011 10:13:39 +0000 Subject: [PATCH] Fix pro/ce services file --- ngcp-rate-o-mat.services | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ngcp-rate-o-mat.services b/ngcp-rate-o-mat.services index 5c828bc..1ecf76d 100644 --- a/ngcp-rate-o-mat.services +++ b/ngcp-rate-o-mat.services @@ -1,3 +1,10 @@ [% TAGS [- -] %] #!/bin/bash +[- IF PRO -] +ngcp-check_active > /dev/null +if [ "$?" == "0" ]; then + monit restart rate-o-mat +fi +[- ELSE -] /etc/init.d/ngcp-rate-o-mat restart +[- END -]