From ee513c1ba2292b86f1d3566a277570467e9d85c2 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 19 Nov 2009 15:00:17 +1100 Subject: More untested eventscript factorisation. Signed-off-by: Martin Schwenke (This used to be ctdb commit ac655b0a65b32d809d47fec9821f7f31bb2fe2a7) --- ctdb/config/events.d/40.vsftpd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ctdb/config/events.d/40.vsftpd') diff --git a/ctdb/config/events.d/40.vsftpd b/ctdb/config/events.d/40.vsftpd index a87b07b1e66..d231690a235 100755 --- a/ctdb/config/events.d/40.vsftpd +++ b/ctdb/config/events.d/40.vsftpd @@ -3,8 +3,8 @@ service_name="vsftpd" # make sure the service is stopped first -service_start="service vsftpd stop > /dev/null 2>&1 ; service vsftpd start" -service_stop="service vsftpd stop" +service_start="service $service_name stop > /dev/null 2>&1 ; service $service_name start" +service_stop="service $service_name stop" service_reconfigure="service $service_name restart" service_fail_limit=2 service_tcp_ports=21 @@ -54,6 +54,7 @@ case $cmd in fi fi ;; + status) ctdb_checkstatus || exit $? ;; -- cgit v1.2.1