summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/messages.h2
-rw-r--r--source3/utils/smbcontrol.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h
index f5dbb1c4b8..9868b5de09 100644
--- a/source3/include/messages.h
+++ b/source3/include/messages.h
@@ -41,6 +41,8 @@
* what has changed since the last MARK */
#define MSG_REQ_DMALLOC_LOG_CHANGED 12
+#define MSG_SHUTDOWN 13
+
/* nmbd messages */
#define MSG_FORCE_ELECTION 1001
#define MSG_WINS_NEW_ENTRY 1002
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index f492a94542..d680fa4489 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -40,6 +40,7 @@ static struct {
{"pool-usage", MSG_REQ_POOL_USAGE },
{"dmalloc-mark", MSG_REQ_DMALLOC_MARK },
{"dmalloc-log-changed", MSG_REQ_DMALLOC_LOG_CHANGED },
+ {"shutdown", MSG_SHUTDOWN },
{NULL, -1}
};
@@ -430,6 +431,11 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
if (!send_message(dest, mtype, NULL, 0, False))
return False;
break;
+
+ case MSG_SHUTDOWN:
+ if (!send_message(dest, MSG_SHUTDOWN, NULL, 0, False))
+ return False;
+ break;
}
return (True);