Bug 768 - samba init script doesn't accept profile argument
samba init script doesn't accept profile argument
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Packaging
3.0.0
SGI IRIX
: P3 minor
: none
Assigned To: Gerald (Jerry) Carter
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-11-12 16:23 UTC by James Peach (outdated mail address)
Modified: 2005-08-24 10:20 UTC (History)
0 users

See Also:


Attachments
Implement 'profile' argument. (1.54 KB, patch)
2003-11-12 16:29 UTC, James Peach (outdated mail address)
no flags Details
implement profile option (1.59 KB, patch)
2003-11-16 23:53 UTC, James Peach (outdated mail address)
no flags Details
support smbd profiling (1.59 KB, patch)
2003-11-18 15:25 UTC, James Peach (outdated mail address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Peach (outdated mail address) 2003-11-12 16:23:41 UTC
SGI documents /etc/init.d/samba as accepting a 'profile' argument
as well as 'start' and 'stop'. In practice, this is quite useful
for switching between running the profile and no-profile versions
of smbd and nmbd (assuming you compiled separate versions like the
SGI distribution does!). Unfortunately, despite the doco, this 
hasn't actually been implemented.
Comment 1 James Peach (outdated mail address) 2003-11-12 16:29:00 UTC
Created attachment 249 [details]
Implement 'profile' argument.

This patch implements the 'profile' argument by running
{smbd,nmbd}.profile if they are present, and running
smbcontrol to enable profile data collection. If the .profile
executables aren't found, the regular ones are run, so this
shouldn't cause any problems for people not running the official
SGI packaging.
Comment 2 James Peach (outdated mail address) 2003-11-16 23:53:41 UTC
Created attachment 256 [details]
implement profile option

This patch implements the profile argument to /etc/init.d/samba
but also signals pmcd so that PCP stats are available immediately.
Comment 3 James Peach (outdated mail address) 2003-11-16 23:55:30 UTC
Update title.
Comment 4 James Peach (outdated mail address) 2003-11-18 15:25:29 UTC
Created attachment 263 [details]
support smbd profiling

I was asked to make samba profiling permanently chkconfig'able. This
patch incorporates the previous semantics, with the addition that
if sambaprofiling id chkconfig'ed on, then 'start' will start the
profiling binaries.
Comment 5 Gerald (Jerry) Carter 2004-03-16 11:43:10 UTC
got it.  Thanks.  Sorry for the delay.
Comment 6 Gerald (Jerry) Carter 2005-08-24 10:20:00 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.