nixos/fcgiwrap: improve readability of CLI args
This commit is contained in:
parent
8101ae41f8
commit
3955eaf450
@ -54,9 +54,13 @@ in {
|
|||||||
wantedBy = optional (cfg.socket.type != "unix") "multi-user.target";
|
wantedBy = optional (cfg.socket.type != "unix") "multi-user.target";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.fcgiwrap}/sbin/fcgiwrap -c ${builtins.toString cfg.process.prefork} ${
|
ExecStart = ''
|
||||||
optionalString (cfg.socket.type != "unix") "-s ${cfg.socket.type}:${cfg.socket.address}"
|
${pkgs.fcgiwrap}/sbin/fcgiwrap ${cli.toGNUCommandLineShell {} ({
|
||||||
}";
|
c = cfg.process.prefork;
|
||||||
|
} // (optionalAttrs (cfg.socket.type != "unix") {
|
||||||
|
s = "${cfg.socket.type}:${cfg.socket.address}";
|
||||||
|
}))}
|
||||||
|
'';
|
||||||
} // (if cfg.process.user != null && cfg.process.group != null then {
|
} // (if cfg.process.user != null && cfg.process.group != null then {
|
||||||
User = cfg.process.user;
|
User = cfg.process.user;
|
||||||
Group = cfg.process.group;
|
Group = cfg.process.group;
|
||||||
|
Loading…
Reference in New Issue
Block a user