diff options
author | Jean-François Micouleau <jfm@samba.org> | 2002-03-29 13:49:48 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2002-03-29 13:49:48 +0000 |
commit | e9f54e53cdcd4eaf0b1aac0420c9349e5c2417d4 (patch) | |
tree | cde1aeecb09b0a4693fe64db1f5b5150411cbc34 | |
parent | 63cbe1be9a37929bf00fc52615c43502d0035563 (diff) | |
download | samba-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)
-rw-r--r-- | source3/include/messages.h | 2 | ||||
-rw-r--r-- | source3/utils/smbcontrol.c | 6 |
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); |