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
31 char pid_file
[SERVERS_TO_CREATE
][FILENAME_MAX
];
32 in_port_t port
[SERVERS_TO_CREATE
];
33 int pids
[SERVERS_TO_CREATE
];
34 bool is_used
[SERVERS_TO_CREATE
]; // Did we start it, or was it just sitting there?
37 void server_startup(server_startup_st
*construct
);
38 void server_shutdown(server_startup_st
*construct
);