2 # event script to manage clamd in a cluster environment
4 [ -n "$CTDB_BASE" ] || \
5 export CTDB_BASE
=$
(cd -P $
(dirname "$0") ; dirname "$PWD")
11 case $CTDB_INIT_STYLE in
14 service_config
="clamd"
18 service_config
="clamav"
24 service
$service_name stop
> /dev
/null
2>&1
25 service
$service_name start
30 ctdb_start_stop_service
32 is_ctdb_managed_service ||
exit 0
44 ctdb_check_unix_socket
${CTDB_CLAMD_SOCKET} ||
exit $?
48 ctdb_standard_event_handler
"$@"