]>
git.ipfire.org Git - 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
10 function fix_permissions
() {
11 local lockdir
="/var/lib/samba/winbindd_privileged"
13 chmod 750 "${lockdir}"
14 chgrp wbpriv
"${lockdir}"
21 boot_mesg
"Starting nmbd..."
22 loadproc
/usr
/sbin
/nmbd
-D
24 boot_mesg
"Starting smbd..."
25 loadproc
/usr
/sbin
/smbd
-D
27 boot_mesg
"Starting winbind..."
28 loadproc
/usr
/sbin
/winbindd
32 boot_mesg
"Stopping smbd..."
33 killproc
-p /var
/run
/smbd.pid
/usr
/sbin
/smbd
35 boot_mesg
"Stopping nmbd..."
36 killproc
-p /var
/run
/nmbd.pid
/usr
/sbin
/nmbd
38 boot_mesg
"Stopping winbind..."
39 killproc
-p /var
/run
/winbindd.pid
/usr
/sbin
/winbindd
43 boot_mesg
"Reloading smbd..."
44 reloadproc
/usr
/sbin
/smbd
46 boot_mesg
"Reloading nmbd..."
47 reloadproc
/usr
/sbin
/nmbd
49 boot_mesg
"Reloading winbind..."
50 reloadproc
/usr
/sbin
/winbindd
60 statusproc
/usr
/sbin
/nmbd
61 statusproc
/usr
/sbin
/smbd
62 statusproc
/usr
/sbin
/winbindd
66 echo "Usage: $0 {start|stop|reload|restart|status}"
71 # End $rc_base/init.d/samba