The Samba-Bugzilla – Attachment 256 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]
implement profile option
samba.rc.diff (text/plain), 1.59 KB, created by
James Peach
on 2003-11-16 23:53:41 UTC
(
hide
)
Description:
implement profile option
Filename:
MIME Type:
Creator:
James Peach
Created:
2003-11-16 23:53:41 UTC
Size:
1.59 KB
patch
obsolete
>--- /usr/tmp/TmpDir.2245808-0/src/packaging/SGI/samba.rc_1.1 Mon Nov 17 18:50:11 2003 >+++ src/packaging/SGI/samba.rc Mon Nov 17 18:34:40 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 >@@ -25,7 +29,7 @@ > case $1 in > 'start') > 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" >@@ -35,9 +39,31 @@ > 'stop') > $ECHO "Stopping Samba Servers." > $KILLALL -15 smbd nmbd >+ $KILLALL -15 smbd.profile nmbd.profile >+ $KILLALL -15 pmdasamba > exit 0 > ;; >+'profile') >+ if $IS_ON samba && test -x $PROFILE_SAMBAD; then >+ /etc/init.d/samba stop >+ $ECHO "Profiling Samba:\c" >+ $PROFILE_SAMBAD $SAMBA_OPTS -D; $ECHO " smbd\c" >+ $PROFILE_NMBD $NMBD_OPTS -D; $ECHO " nmbd\c" >+ $ECHO "." >+ elif $IS_ON samba && test -x $SAMBAD; then >+ /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 test -x $SMBCONTROL; then >+ $SMBCONTROL smbd profile on >+ $SMBCONTROL nmbd profile on >+ fi >+ $KILLALL -HUP pmcd >+ ;; > *) >- 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