3 [ -f /etc
/samba
/smb.conf
] ||
exit 0
5 mkdir
-p /var
/log
/samba
8 printf "Starting SMB services: "
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
12 printf "Starting NMB services: "
14 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
18 printf "Shutting down SMB services: "
20 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
22 printf "Shutting down NMB services: "
24 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
33 printf "Reloading smb.conf file: "
34 kill -HUP `pidof smbd`
35 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
52 echo "Usage: $0 {start|stop|restart|reload}"