reaktor2: add listen option
This commit is contained in:
parent
54827be4cc
commit
1e29f55895
@ -45,6 +45,10 @@ with import <stockholm/lib>;
|
|||||||
default = self.config.port == "6697";
|
default = self.config.port == "6697";
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
};
|
};
|
||||||
|
API.listen = mkOption {
|
||||||
|
default = null;
|
||||||
|
type = types.nullOr types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
@ -65,9 +69,11 @@ with import <stockholm/lib>;
|
|||||||
ExecStart = let
|
ExecStart = let
|
||||||
configFile = pkgs.writeJSON configFileName configValue;
|
configFile = pkgs.writeJSON configFileName configValue;
|
||||||
configFileName = "${cfg.systemd-service-name}.config.json";
|
configFileName = "${cfg.systemd-service-name}.config.json";
|
||||||
configValue = recursiveUpdate {
|
configValue = stripAttr (
|
||||||
logTime = false;
|
recursiveUpdate {
|
||||||
} (removeAttrs cfg ["_module"]);
|
logTime = false;
|
||||||
|
} (removeAttrs cfg ["_module"])
|
||||||
|
);
|
||||||
in "${pkgs.reaktor2}/bin/reaktor ${configFile}";
|
in "${pkgs.reaktor2}/bin/reaktor ${configFile}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "30";
|
RestartSec = "30";
|
||||||
|
Loading…
Reference in New Issue
Block a user