]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/samba
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
7 #$LastChangedBy: bdubbs $
8 #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
15 boot_mesg
"Starting nmbd..."
16 loadproc
/usr
/sbin
/nmbd
-D
18 boot_mesg
"Starting smbd..."
19 loadproc
/usr
/sbin
/smbd
-D
23 boot_mesg
"Stopping smbd..."
24 killproc
-p /var
/run
/smbd.pid
/usr
/sbin
/smbd
26 boot_mesg
"Stopping nmbd..."
27 killproc
-p /var
/run
/nmbd.pid
/usr
/sbin
/nmbd
31 boot_mesg
"Reloading smbd..."
32 reloadproc
/usr
/sbin
/smbd
34 boot_mesg
"Reloading nmbd..."
35 reloadproc
/usr
/sbin
/nmbd
45 statusproc
/usr
/sbin
/nmbd
46 statusproc
/usr
/sbin
/smbd
50 echo "Usage: $0 {start|stop|reload|restart|status}"
55 # End $rc_base/init.d/samba