mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
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";
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.fcgiwrap}/sbin/fcgiwrap -c ${builtins.toString cfg.process.prefork} ${
|
||||
optionalString (cfg.socket.type != "unix") "-s ${cfg.socket.type}:${cfg.socket.address}"
|
||||
}";
|
||||
ExecStart = ''
|
||||
${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 {
|
||||
User = cfg.process.user;
|
||||
Group = cfg.process.group;
|
||||
|
|
Loading…
Reference in a new issue