]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/packages/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
10 function fix_permissions
() {
11 local lockdir
="/var/lib/samba/winbindd_privileged"
12 chmod 750 "${lockdir}"
13 chgrp wbpriv
"${lockdir}"
15 mkdir
-p /var
/run
/samba
/{nmbd
,ncalrpc
,winbindd
}
22 boot_mesg
"Starting nmbd..."
23 loadproc
/usr
/sbin
/nmbd
-D
25 boot_mesg
"Starting smbd..."
26 loadproc
/usr
/sbin
/smbd
-D
28 boot_mesg
"Starting winbind..."
29 loadproc
/usr
/sbin
/winbindd
33 boot_mesg
"Stopping smbd..."
34 killproc
/usr
/sbin
/smbd
36 boot_mesg
"Stopping nmbd..."
37 killproc
/usr
/sbin
/nmbd
39 boot_mesg
"Stopping winbind..."
40 killproc
/usr
/sbin
/winbindd
44 boot_mesg
"Reloading smbd..."
45 reloadproc
/usr
/sbin
/smbd
47 boot_mesg
"Reloading nmbd..."
48 reloadproc
/usr
/sbin
/nmbd
50 boot_mesg
"Reloading winbind..."
51 reloadproc
/usr
/sbin
/winbindd
61 statusproc
/usr
/sbin
/nmbd
62 statusproc
/usr
/sbin
/smbd
63 statusproc
/usr
/sbin
/winbindd
67 echo "Usage: $0 {start|stop|reload|restart|status}"
72 # End $rc_base/init.d/samba