1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

gnustep: fix gdomap service

This gets rid of the rest of the pidfile stuff and makes gdomap just act
like a normal systemd process. Also reword "enable" option.
This commit is contained in:
Matthew Bauer 2016-07-07 18:54:32 +00:00
parent 08ce2d9d40
commit f541715057

View file

@ -11,8 +11,8 @@ in
#
options = {
services.gdomap = {
enable = mkEnableOption "Whether to enable gdomap, the GNUstep distributed objects daemon";
};
enable = mkEnableOption "GNUstep Distributed Objects name server";
};
};
#
@ -26,16 +26,7 @@ in
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = [ pkgs.gnustep.base ];
serviceConfig = {
PIDFile = cfg.pidfile;
ExecStart = "@${pkgs.gnustep.base}/bin/gdomap"
+ " -d -p"
+ " -I ${cfg.pidfile}";
Restart = "always";
RestartSec = 2;
TimeoutStartSec = "30";
Type = "forking";
};
serviceConfig.ExecStart = "${pkgs.gnustep.base}/bin/gdomap -f";
};
};
}