+ RUN_MODE=daemons + '[' -r /etc/default/samba ']' + . /etc/default/samba ++ RUN_MODE=daemons + NMBDPID=/var/run/samba/nmbd.pid + SMBDPID=/var/run/samba/smbd.pid + unset TMPDIR + test -x /usr/sbin/nmbd -a -x /usr/sbin/smbd + . /lib/lsb/init-functions ++ '[' -e /etc/lsb-base-logging.sh ']' ++ . /etc/lsb-base-logging.sh + case "$1" in + log_daemon_msg 'Stopping Samba daemons' nmbd + '[' -z 'Stopping Samba daemons' ']' + log_use_usplash + type usplash_write + usplash_write 'TEXT Stopping Samba daemons nmbd' chdir: No such file or directory + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' FANCYTTY = 0 ']' + '[' xscreen '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + FANCYTTY=0 + false + echo ' * Stopping Samba daemons' nmbd * Stopping Samba daemons nmbd + COL= + start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid + sleep 1 + '[' -f /var/run/samba/nmbd.pid ']' + '[' daemons '!=' inetd ']' + log_progress_msg smbd + : + start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid + sleep 1 + '[' -f /var/run/samba/smbd.pid ']' + log_end_msg 0 + '[' -z 0 ']' + log_use_usplash + type usplash_write + '[' 0 -eq 0 ']' + usplash_write 'SUCCESS ok' chdir: No such file or directory + '[' '' ']' + '[' 0 -eq 0 ']' + echo ' ...done.' ...done. + return 0 + exit 0