2 # Begin $rc_base/init.d/samba
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
12 echo "Starting nmbd..."
13 loadproc
/usr
/sbin
/nmbd
-D
15 echo "Starting smbd..."
16 loadproc
/usr
/sbin
/smbd
-D
20 echo "Stopping smbd..."
21 killproc
/usr
/sbin
/smbd
23 echo "Stopping nmbd..."
24 killproc
/usr
/sbin
/nmbd
28 echo "Reloading smbd..."
29 reloadproc
/usr
/sbin
/smbd
31 echo "Reloading nmbd..."
32 reloadproc
/usr
/sbin
/nmbd
42 statusproc
/usr
/sbin
/nmbd
43 statusproc
/usr
/sbin
/smbd
47 echo "Usage: $0 {start|stop|reload|restart|status}"
52 # End $rc_base/init.d/samba