2 * Copyright (C) 2011 Data Differential, http://datadifferential.com/
3 * Copyright (C) 2006-2009 Brian Aker
6 * Use and distribution licensed under the BSD license. See
7 * the COPYING file in the parent directory for full text.
15 Server startup and shutdown functions.
21 #include <libmemcached/memcached.h>
23 typedef struct server_startup_st server_startup_st
;
24 #define SERVERS_TO_CREATE 5
26 struct server_startup_st
30 memcached_server_st
*servers
;
32 char pid_file
[SERVERS_TO_CREATE
][FILENAME_MAX
];
33 in_port_t port
[SERVERS_TO_CREATE
];
34 int pids
[SERVERS_TO_CREATE
];
35 bool is_used
[SERVERS_TO_CREATE
]; // Did we start it, or was it just sitting there?
38 void server_startup(server_startup_st
*construct
);
39 void server_shutdown(server_startup_st
*construct
);