#!/bin/sh case "$1" in healthy)pgrep smbd -F /run/samba/smbd.pid || /etc/init.d/samba restart ;; # early setup) /etc/init.d/samba restart ;; esac