3 # description: Starts and stops the Samba smbd and nmbd daemons \
4 # used to provide SMB network services.
6 # Source function library.
7 . /etc/rc.d/init.d/functions
9 # Source networking configuration.
10 . /etc/sysconfig/network
12 # Check that networking is up.
13 [ ${NETWORKING} = "no" ] && exit 0
15 # Check that smb.conf exists.
16 [ -f /etc/smb.conf ] || exit 0
18 # See how we were called.
21 echo -n "Starting SMB services: "
25 touch /var/lock/subsys/smb
28 echo -n "Shutting down SMB services: "
31 rm -f /var/lock/subsys/smb
39 echo -n "Restarting SMB services: "
45 echo "Usage: smb {start|stop|restart|status}"