4 # description: Starts and stops the Samba smbd and nmbd daemons \
5 # used to provide SMB network services.
7 # Source function library.
8 .
/etc
/rc.d
/init.d
/functions
10 # Source networking configuration.
11 .
/etc
/sysconfig
/network
13 # Check that networking is up.
14 [ ${NETWORKING} = "no" ] && exit 0
16 # Check that smb.conf exists.
17 [ -f /etc
/smb.conf
] ||
exit 0
19 # See how we were called.
22 echo -n "Starting SMB services: "
26 touch /var
/lock
/subsys
/smb
29 echo -n "Shutting down SMB services: "
32 rm -f /var
/lock
/subsys
/smb
40 echo -n "Restarting SMB services: "
46 echo "Usage: smb {start|stop|restart|status}"