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.
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.
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.
Update title.
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.
got it. Thanks. Sorry for the delay.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.