Some additional xinetd settings.

svn path=/nixos/trunk/; revision=33836
This commit is contained in:
Arie Middelkoop 2012-04-19 08:28:54 +00:00
parent 6ef5e0e5b3
commit 298e0e1829

View file

@ -15,6 +15,7 @@ let
log_type = SYSLOG daemon info log_type = SYSLOG daemon info
log_on_failure = HOST log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT log_on_success = PID HOST DURATION EXIT
${cfg.extraDefaults}
} }
${concatMapStrings makeService cfg.services} ${concatMapStrings makeService cfg.services}
@ -33,6 +34,7 @@ let
user = ${srv.user} user = ${srv.user}
server = ${srv.server} server = ${srv.server}
${optionalString (srv.serverArgs != "") "server_args = ${srv.serverArgs}"} ${optionalString (srv.serverArgs != "") "server_args = ${srv.serverArgs}"}
${srv.extraConfig}
} }
''; '';
@ -51,6 +53,14 @@ in
''; '';
}; };
services.xinetd.extraDefaults = mkOption {
default = "";
type = types.string;
description = ''
Additional configuration lines added to the default section of xinetd's configuration.
'';
};
services.xinetd.services = mkOption { services.xinetd.services = mkOption {
default = []; default = [];
description = '' description = ''
@ -115,6 +125,12 @@ in
''; '';
}; };
extraConfig = mkOption {
type = types.string;
default = "";
description = "Extra configuration-lines added to the section of the service.";
};
}; };
}; };