summaryrefslogtreecommitdiffstats
path: root/ctdb/config/events.d/31.clamd
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config/events.d/31.clamd')
-rwxr-xr-x[-rw-r--r--]ctdb/config/events.d/31.clamd7
1 files changed, 5 insertions, 2 deletions
diff --git a/ctdb/config/events.d/31.clamd b/ctdb/config/events.d/31.clamd
index 73454d7c53..53739e24f3 100644..100755
--- a/ctdb/config/events.d/31.clamd
+++ b/ctdb/config/events.d/31.clamd
@@ -16,8 +16,11 @@ case $CTDB_INIT_STYLE in
;;
esac
-service_start="service $service_name stop > /dev/null 2>&1 ; service $service_name start"
-service_stop="service $service_name stop"
+service_start ()
+{
+ service $service_name stop > /dev/null 2>&1
+ service $service_name start
+}
loadconfig