5 [ -f /etc
/conf.d
/samba
] && .
/etc
/conf.d
/samba
7 [ -z "$SAMBA_DAEMONS" ] && SAMBA_DAEMONS
=(smbd nmbd
)
12 stat_busy
"Starting Samba Server"
13 for d
in ${SAMBA_DAEMONS[@]}; do
14 PID
=`pidof -o %PPID /usr/sbin/$d`
15 [ -z "$PID" ] && /usr
/sbin
/$d -D
18 if [ $rc -gt 0 ]; then
27 stat_busy
"Stopping Samba Server"
28 for d
in ${SAMBA_DAEMONS[@]}; do
29 PID
=`pidof -o %PPID /usr/sbin/$d`
30 [ -z "$PID" ] ||
kill $PID &> /dev
/null
33 if [ $rc -gt 0 ]; then
36 rm /var
/run
/samba
/smbd.pid
&>/dev
/null
37 rm /var
/run
/samba
/nmbd.pid
&>/dev
/null
38 rm /var
/run
/samba
/winbindd.pid
&>/dev
/null
49 echo "usage: $0 {start|stop|restart}"