1
0
forked from ports/opt

samba: forgot to add the start script

This commit is contained in:
Juergen Daubert 2005-12-19 18:12:52 +00:00
parent 9b5d712eb1
commit b506d04aec

28
samba/samba Normal file
View File

@ -0,0 +1,28 @@
#!/bin/sh
#
# /etc/rc.d/samba: start/stop samba daemon
#
case $1 in
start)
/usr/sbin/smbd -D
/usr/sbin/nmbd -D
;;
stop)
killall -q nmbd
killall -q smbd
;;
restart)
$0 stop
sleep 2
$0 start
;;
reload)
/usr/bin/smbcontrol smbd reload-config
;;
*)
echo "usage: $0 [start|stop|restart|reload]"
;;
esac
# End of file