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:
parent
08ce2d9d40
commit
f541715057
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue