summary refs log tree commit diff
path: root/nixos/modules/services/networking/xrdp.nix
diff options
context:
space:
mode:
authorVolth <volth@webmaster.ms>2017-05-02 18:46:53 +0000
committerVolth <volth@webmaster.ms>2017-05-02 21:08:07 +0000
commit830669ca05c41545679f452957baed18abc9a927 (patch)
treecdd6817c4062c7316ae20c678384a2aef70a1398 /nixos/modules/services/networking/xrdp.nix
parentbeff1984f4c84435c706244871b65bf1833fbee8 (diff)
downloadnixpkgs-830669ca05c41545679f452957baed18abc9a927.tar
nixpkgs-830669ca05c41545679f452957baed18abc9a927.tar.gz
nixpkgs-830669ca05c41545679f452957baed18abc9a927.tar.bz2
nixpkgs-830669ca05c41545679f452957baed18abc9a927.tar.lz
nixpkgs-830669ca05c41545679f452957baed18abc9a927.tar.xz
nixpkgs-830669ca05c41545679f452957baed18abc9a927.tar.zst
nixpkgs-830669ca05c41545679f452957baed18abc9a927.zip
xrdp: do not restart xrdp-sesman on nixos-rebuild
Diffstat (limited to 'nixos/modules/services/networking/xrdp.nix')
-rw-r--r--nixos/modules/services/networking/xrdp.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/xrdp.nix b/nixos/modules/services/networking/xrdp.nix
index bf59130ce5b..634b0e7efb6 100644
--- a/nixos/modules/services/networking/xrdp.nix
+++ b/nixos/modules/services/networking/xrdp.nix
@@ -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";
         };
       };