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,7 +11,7 @@ in
# #
options = { options = {
services.gdomap = { 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" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
path = [ pkgs.gnustep.base ]; path = [ pkgs.gnustep.base ];
serviceConfig = { serviceConfig.ExecStart = "${pkgs.gnustep.base}/bin/gdomap -f";
PIDFile = cfg.pidfile;
ExecStart = "@${pkgs.gnustep.base}/bin/gdomap"
+ " -d -p"
+ " -I ${cfg.pidfile}";
Restart = "always";
RestartSec = 2;
TimeoutStartSec = "30";
Type = "forking";
};
}; };
}; };
} }