summaryrefslogtreecommitdiff
path: root/samba/samba
blob: 69384b5c4a4dc9ef11eb760aa06c7c50a29d9fb1 (plain)
    1 #!/bin/sh
    2 #
    3 # /etc/rc.d/samba: start/stop samba daemon
    4 #
    5 
    6 case $1 in
    7 start)
    8 	/usr/sbin/nmbd -D
    9 	/usr/sbin/smbd -D
   10 	;;
   11 stop)
   12 	killall -q smbd
   13 	killall -q nmbd
   14 	;;
   15 restart)
   16 	$0 stop
   17 	sleep 2
   18 	$0 start
   19 	;;
   20 reload)
   21 	/usr/bin/smbcontrol smbd reload-config
   22 	;;
   23 *)
   24 	echo "usage: $0 [start|stop|restart|reload]"
   25 	;;
   26 esac
   27 
   28 # End of file

Generated by cgit