#ifndef SERVICE_SETTINGS_H
#define SERVICE_SETTINGS_H
#include "net.h"
/* <settings checks> */
enum service_user_default {
};
enum service_type {
};
/* </settings checks> */
struct file_listener_settings {
const char *path;
unsigned int mode;
const char *user;
const char *group;
};
struct inet_listener_settings {
const char *name;
const char *address;
bool ssl;
bool reuse_port;
bool haproxy;
};
struct service_settings {
const char *name;
const char *protocol;
const char *type;
const char *executable;
const char *user;
const char *group;
const char *privileged_group;
const char *extra_groups;
const char *chroot;
bool drop_priv_before_exec;
unsigned int process_min_avail;
unsigned int process_limit;
unsigned int client_limit;
unsigned int service_count;
unsigned int idle_kill;
/* internal to master: */
/* -- flags that can be set internally -- */
/* process_limit must not be higher than 1 */
};
#endif