10 SAMBAD
=/usr
/samba
/bin
/smbd
11 PROFILE_SAMBAD
=/usr
/samba
/bin
/smbd.profile
13 NMBD
=/usr
/samba
/bin
/nmbd
14 PROFILE_NMBD
=/usr
/samba
/bin
/nmbd.profile
17 SMBCONTROL
=/usr
/samba
/bin
/smbcontrol
19 if test ! -x $IS_ON ; then
23 if $IS_ON verbose
; then
25 else # For a quiet startup and shutdown
29 if $IS_ON sambaprofiling
; then
33 if test "$enable_profiling" -o "$1" = "profile" ; then
34 SAMBAD
=$PROFILE_SAMBAD
36 enable_profiling
="yes"
41 if $IS_ON samba
&& test -x $SAMBAD; then
42 /etc
/init.d
/samba stop
44 $SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c"
45 $NMBD $NMBD_OPTS -D; $ECHO " nmbd\c"
48 if $IS_ON samba
&& test "$enable_profiling" ; then
49 if test -x $SMBCONTROL; then
50 $ECHO "Enabling Samba profiling."
51 $SMBCONTROL smbd profile on
> /dev
/null
2>&1
52 $SMBCONTROL nmbd profile on
> /dev
/null
2>&1
58 $ECHO "Stopping Samba Servers."
59 $KILLALL -15 smbd nmbd
60 $KILLALL -15 smbd.profile nmbd.profile
61 $KILLALL -15 pmdasamba
65 echo "usage: /etc/init.d/samba {start|stop|profile}"