diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-07-09 11:57:20 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-07-09 11:57:20 +1000 |
commit | 66c8d4fb3dbd68f3db4ef542bddf1062da2373e7 (patch) | |
tree | 0f7fbb3caceeace5759fe1b44c3506f1b42c4069 /ctdb/tcp/tcp_connect.c | |
parent | d6a5fd5c9d6c7ef43308e7b79e79f200abcf72f1 (diff) | |
download | samba-66c8d4fb3dbd68f3db4ef542bddf1062da2373e7.tar.gz samba-66c8d4fb3dbd68f3db4ef542bddf1062da2373e7.tar.xz samba-66c8d4fb3dbd68f3db4ef542bddf1062da2373e7.zip |
make it possible to start the daemon in STOPPED mode
(This used to be ctdb commit 866aa995dc029db6e510060e9e95a8ca149094ac)
Diffstat (limited to 'ctdb/tcp/tcp_connect.c')
-rw-r--r-- | ctdb/tcp/tcp_connect.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index fc169e70b7..e3d7772ae4 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -371,6 +371,11 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb) DEBUG(DEBUG_INFO, ("This node is configured to start in DISABLED state\n")); ctdb->nodes[i]->flags |= NODE_FLAGS_DISABLED; } + /* do we start out in STOPPED mode? */ + if (ctdb->start_as_stopped != 0) { + DEBUG(DEBUG_INFO, ("This node is configured to start in STOPPED state\n")); + ctdb->nodes[i]->flags |= NODE_FLAGS_STOPPED; + } if (listen(ctcp->listen_fd, 10) == -1) { goto failed; |