/* getenv(MASTER_UID_ENV) provides master_status.uid value */
#define MASTER_UID_ENV "GENERATION"
+/* getenv(MASTER_SERVICE_NAME) provides the service's name */
+#define MASTER_SERVICE_ENV "SERVICE_NAME"
+
/* getenv(MASTER_CLIENT_LIMIT_ENV) provides maximum
master_status.available_count as specified in configuration file */
#define MASTER_CLIENT_LIMIT_ENV "CLIENT_LIMIT"
env_put(MASTER_IS_PARENT_ENV"=1");
service_process_setup_config_environment(service);
+ env_put(t_strdup_printf(MASTER_SERVICE_ENV"=%s",
+ service->set->name));
env_put(t_strdup_printf(MASTER_CLIENT_LIMIT_ENV"=%u",
service->client_limit));
env_put(t_strdup_printf(MASTER_PROCESS_LIMIT_ENV"=%u",