3 # Stolen from RedHat FC5.
6 # Check that smb.conf exists.
7 [ -f /etc
/samba
/smb.conf
] ||
exit 0
10 mkdir
-p /var
/cache
/samba
11 mkdir
-p /var
/log
/samba
12 mkdir
-p /var
/lock
/subsys
17 echo -n "Starting SMB services: "
22 echo -n "Starting NMB services: "
27 [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var
/lock
/subsys
/smb || \
33 echo -n "Shutting down SMB services: "
36 rm -f /var
/run
/smbd.pid
39 echo -n "Shutting down NMB services: "
42 rm -f /var
/run
/nmbd.pid
44 [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var
/lock
/subsys
/smb
55 echo -n "Reloading smb.conf file: "
56 kill -HUP `pidof smbd`
76 echo "Usage: $0 {start|stop|restart|reload}"