summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2002-03-29 13:49:48 +0000
committerJean-François Micouleau <jfm@samba.org>2002-03-29 13:49:48 +0000
commite9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4 (patch)
treecde1aeecb09b0a4693fe64db1f5b5150411cbc34 /source3/utils
parent63cbe1be9a37929bf00fc52615c43502d0035563 (diff)
downloadsamba-e9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4.tar.gz
samba-e9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4.tar.bz2
samba-e9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4.zip
added a shutdown command to smbcontrol.
have to add the server side now. J.F. (This used to be commit b83f87d6811dbad2c254cd5add4bbedb3196c629)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c6
1 files changed, 6 insertions, 0 deletions
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);