xrdp: do not restart xrdp-sesman on nixos-rebuild

This commit is contained in:
Volth 2017-05-02 18:46:53 +00:00
parent beff1984f4
commit 830669ca05

View File

@ -133,8 +133,10 @@ in
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
description = "xrdp session manager";
restartIfChanged = false; # do not restart on "nixos-rebuild switch". like "display-manager", it can have many interactive programs as children
serviceConfig = {
ExecStart = "${cfg.package}/bin/xrdp-sesman --nodaemon --config ${confDir}/sesman.ini";
ExecStop = "${pkgs.coreutils}/bin/kill -INT $MAINPID";
};
};