dont try starting samba through the "init" event
[sahlberg/ctdb.git] / config / events.d / 50.samba
index 54a29cf00d123ebc48b5399699e6fd576ebb0145..6e84f5f53dc98e42b32cbaf04a2ac0e76fc2ccae 100755 (executable)
@@ -206,8 +206,10 @@ periodic_cleanup() {
 
 ###########################
 
+[ "$1" = "init" ] || {
 ctdb_start_stop_service
 ctdb_start_stop_service "winbind"
+}
 
 is_ctdb_managed_service || is_ctdb_managed_service "winbind" || exit 0