From e9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4 Mon Sep 17 00:00:00 2001 From: Jean-François Micouleau Date: Fri, 29 Mar 2002 13:49:48 +0000 Subject: added a shutdown command to smbcontrol. have to add the server side now. J.F. (This used to be commit b83f87d6811dbad2c254cd5add4bbedb3196c629) --- source3/utils/smbcontrol.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/utils') 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); -- cgit