Bug 768 - samba init script doesn't accept profile argument
Summary: samba init script doesn't accept profile argument
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Packaging (show other bugs)
Version: 3.0.0
Hardware: SGI IRIX
: P3 minor
Target Milestone: none
Assignee: Gerald (Jerry) Carter
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 16:23 UTC by James Peach
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
no flags Details
implement profile option (1.59 KB, patch)
2003-11-16 23:53 UTC, James Peach
no flags Details
support smbd profiling (1.59 KB, patch)
2003-11-18 15:25 UTC, James Peach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Peach 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 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 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 2003-11-16 23:55:30 UTC
Update title.
Comment 4 James Peach 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.