Config.in: add -Og option
[buildroot-gz.git] / package / samba4 / S91smb
blobc8c5fc86a4f970a8b33e4f5068111d924d3a79d9
1 #!/bin/sh
3 [ -f /etc/samba/smb.conf ] || exit 0
5 mkdir -p /var/log/samba
7 start() {
8 printf "Starting SMB services: "
9 smbd -D
10 [ $? = 0 ] && echo "OK" || echo "FAIL"
12 printf "Starting NMB services: "
13 nmbd -D
14 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 stop() {
18 printf "Shutting down SMB services: "
19 kill -9 `pidof smbd`
20 [ $? = 0 ] && echo "OK" || echo "FAIL"
22 printf "Shutting down NMB services: "
23 kill -9 `pidof nmbd`
24 [ $? = 0 ] && echo "OK" || echo "FAIL"
27 restart() {
28 stop
29 start
32 reload() {
33 printf "Reloading smb.conf file: "
34 kill -HUP `pidof smbd`
35 [ $? = 0 ] && echo "OK" || echo "FAIL"
38 case "$1" in
39 start)
40 start
42 stop)
43 stop
45 restart)
46 restart
48 reload)
49 reload
52 echo "Usage: $0 {start|stop|restart|reload}"
53 exit 1
54 esac
56 exit $?