The Samba-Bugzilla – Attachment 263 Details for
Bug 768
samba init script doesn't accept profile argument
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
support smbd profiling
samba.rc.diff (text/plain), 1.59 KB, created by
James Peach
on 2003-11-18 15:25:29 UTC
(
hide
)
Description:
support smbd profiling
Filename:
MIME Type:
Creator:
James Peach
Created:
2003-11-18 15:25:29 UTC
Size:
1.59 KB
patch
obsolete
>--- /usr/tmp/TmpDir.2416203-0/src/packaging/SGI/samba.rc_1.1 Wed Nov 19 10:21:07 2003 >+++ src/packaging/SGI/samba.rc Tue Nov 18 17:14:48 2003 >@@ -8,10 +8,14 @@ > KILLALL=/sbin/killall > > SAMBAD=/usr/samba/bin/smbd >+PROFILE_SAMBAD=/usr/samba/bin/smbd.profile > #SAMBA_OPTS=-d2 > NMBD=/usr/samba/bin/nmbd >+PROFILE_NMBD=/usr/samba/bin/nmbd.profile > #NMBD_OPTS=-d1 > >+SMBCONTROL=/usr/samba/bin/smbcontrol >+ > if test ! -x $IS_ON ; then > IS_ON=true > fi >@@ -22,22 +26,42 @@ > ECHO=: > fi > >+if $IS_ON sambaprofiling ; then >+ enable_profiling=yes >+fi >+ >+if test "$enable_profiling" -o "$1" = "profile" ; then >+ SAMBAD=$PROFILE_SAMBAD >+ NMBD=$PROFILE_NMBD >+ enable_profiling="yes" >+fi >+ > case $1 in >-'start') >+start|profile) > if $IS_ON samba && test -x $SAMBAD; then >- $KILLALL -15 smbd nmbd >+ /etc/init.d/samba stop > $ECHO "Samba:\c" > $SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c" > $NMBD $NMBD_OPTS -D; $ECHO " nmbd\c" > $ECHO "." > fi >+ if $IS_ON samba && test "$enable_profiling" ; then >+ if test -x $SMBCONTROL; then >+ $ECHO "Enabling Samba profiling." >+ $SMBCONTROL smbd profile on > /dev/null 2>&1 >+ $SMBCONTROL nmbd profile on > /dev/null 2>&1 >+ fi >+ $KILLALL -HUP pmcd >+ fi > ;; >-'stop') >+stop) > $ECHO "Stopping Samba Servers." > $KILLALL -15 smbd nmbd >+ $KILLALL -15 smbd.profile nmbd.profile >+ $KILLALL -15 pmdasamba > exit 0 > ;; > *) >- echo "usage: /etc/init.d/samba {start|stop}" >+ echo "usage: /etc/init.d/samba {start|stop|profile}" > ;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 768
:
249
|
256
| 263