Bug 9393 - Need a tool to change debuglevel of samba at runtime
Summary: Need a tool to change debuglevel of samba at runtime
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.12.2
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2012-11-14 20:59 UTC by Michael Adam
Modified: 2020-05-11 23:03 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Adam 2012-11-14 20:59:00 UTC
We need a tool to change the debug level of samba at runtime, i.e. without the requirement to restart samba, in the same way as smbcontrol can be used to change the debuglevel of smbd, nmbd, and winbindd.

Since samba forks smbd it is not acceptable to restart samba including the file server component to change the debug level.

In the long run we plan to reconsile the messaging systems of the source3 and source4 parts of samba, and then we will have a single tool to control all components. But for 4.0 we should just spend the minimum required effort, which would probably be to integrate it into smbcontrol.
Comment 1 Michael Adam 2012-11-14 20:59:55 UTC
I think we can't release 4.0 into production without having a means to change the debug level at run time.
Comment 2 Karolin Seeger 2012-11-15 10:50:04 UTC
I agree that it's very important for debugging to be able to change the debug level at run time, but I don't think that this should be a blocker for 4.0 now.

No user raised this issue up to rc5 and I would like to avoid adding new binaries at this late stage in the release process. Would it be an option to make this one a blocker for 4.1?
Comment 3 Michael Adam 2012-12-03 12:19:33 UTC
Agreed. Let's not block 4.0 for this, but let's try to do something like this soon...
Comment 4 Michael Adam 2020-05-11 23:01:08 UTC
I just stumbled across this ... Not sure this is still relevant.
Comment 5 Andrew Bartlett 2020-05-11 23:03:07 UTC
The common message bus means we can talk from smbcontrol to 'samba', we just need to hook up the other end, just as has been done for talloc dumps etc.