Workaround for now is install monit and add hook in it's configuration:
check process smbd with pidfile /var/run/samba/smbd.pid
start program "/usr/sbin/service smbd start"
stop program "/usr/sbin/service smbd stop"
if 20 restarts within 20 cycles then timeout
check process nmbd with pidfile /var/run/samba/nmbd.pid
start program "/usr/sbin/service nmbd start"
stop program "/usr/sbin/service nmbd stop"
if 20 restarts within 20 cycles then timeout
Workaround for now is install monit and add hook in it's configuration:
check process smbd with pidfile /var/run/ samba/smbd. pid
start program "/usr/sbin/service smbd start"
stop program "/usr/sbin/service smbd stop"
if 20 restarts within 20 cycles then timeout
check process nmbd with pidfile /var/run/ samba/nmbd. pid
start program "/usr/sbin/service nmbd start"
stop program "/usr/sbin/service nmbd stop"
if 20 restarts within 20 cycles then timeout