summaryrefslogtreecommitdiff
path: root/ctdb/config/events.d/40.vsftpd
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-11-19 15:00:17 +1100
committerMartin Schwenke <martin@meltin.net>2009-11-19 15:00:17 +1100
commitee513c1ba2292b86f1d3566a277570467e9d85c2 (patch)
tree47ddef66705f1eeaa15ce5278c8913fc6de8a7af /ctdb/config/events.d/40.vsftpd
parent73cb65bf1a7d3ff5a583965ab31a914485091fb5 (diff)
downloadsamba-ee513c1ba2292b86f1d3566a277570467e9d85c2.tar.gz
More untested eventscript factorisation.
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit ac655b0a65b32d809d47fec9821f7f31bb2fe2a7)
Diffstat (limited to 'ctdb/config/events.d/40.vsftpd')
-rwxr-xr-xctdb/config/events.d/40.vsftpd5
1 files changed, 3 insertions, 2 deletions
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 $?
;;