samba: forgot to add the start script
This commit is contained in:
parent
9b5d712eb1
commit
b506d04aec
28
samba/samba
Normal file
28
samba/samba
Normal 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
|
Loading…
x
Reference in New Issue
Block a user