summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-07-15 17:21:21 +0000
committerAlexander Bokovoy <ab@samba.org>2003-07-15 17:21:21 +0000
commit8c4be2bbc9d1b42ae1b26a3a2519dd2c911dee45 (patch)
tree8714ccf9f0658d5adf0adcfcb0cfeb771f843ef6 /source3/utils
parentcf8628e5858f2875cfccbac87eb9b02ef5f7228d (diff)
downloadsamba-8c4be2bbc9d1b42ae1b26a3a2519dd2c911dee45.tar.gz
samba-8c4be2bbc9d1b42ae1b26a3a2519dd2c911dee45.tar.bz2
samba-8c4be2bbc9d1b42ae1b26a3a2519dd2c911dee45.zip
Add support for MSG_SMB_CONF_UPDATED and MSG_SHUTDOWN to all daemons (smbd, nmbd, winbindd). Reviewed by jerry and tridge.
(This used to be commit 02c5e2fc6f0721ebd82a9e6a2b34190607de55fe)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index e168cf7837..b7333f2317 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -553,6 +553,16 @@ static BOOL do_drvupgrade(const pid_t pid, const int argc, const char **argv)
pid, MSG_DEBUG, argv[1], strlen(argv[1]) + 1, False);
}
+static BOOL do_reload_config(const pid_t pid, const int argc, const char **argv)
+{
+ if (argc != 1) {
+ fprintf(stderr, "Usage: smbcontrol <dest> reload-config\n");
+ return False;
+ }
+
+ return send_message(pid, MSG_SMB_CONF_UPDATED, NULL, 0, False);
+}
+
/* A list of message type supported */
static const struct {
@@ -576,6 +586,7 @@ static const struct {
{ "dmalloc-log-changed", do_dmalloc_changed, "" },
{ "shutdown", do_shutdown, "Shut down daemon" },
{ "drvupgrade", do_drvupgrade, "Notify a printer driver has changed" },
+ { "reload-config", do_reload_config, "Force smbd or winbindd to reload config file"},
{ "noop", do_noop, "Do nothing" },
{ NULL }
};