1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

added a shutdown command to smbcontrol.

have to add the server side now.

	J.F.
This commit is contained in:
Jean-François Micouleau -
parent f25fcd99fa
commit b83f87d681
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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);