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,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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user