diff options
author | Raymond Gauthier <jraygauthier@gmail.com> | 2021-09-30 19:27:06 -0400 |
---|---|---|
committer | Raymond Gauthier <jraygauthier@gmail.com> | 2021-09-30 19:36:45 -0400 |
commit | 953bbc0d7373102cf89625dc3bb7ab8e91134069 (patch) | |
tree | f7a47e397b7aa074aed9fa083cbeaa29a68ed411 /nixos/modules/services/monitoring | |
parent | 200e959995fa8088b5722bc8255109c03f2a4f78 (diff) | |
download | nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar.gz nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar.bz2 nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar.lz nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar.xz nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.tar.zst nixlib-953bbc0d7373102cf89625dc3bb7ab8e91134069.zip |
nixos/teamviewer: fix issue #44307
Move to a forefront launch of the daemon. Doing so allowed us to move the service from forking to simple to avoid the missing pid error log. Also: - Make the dbus dependency explicit.
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r-- | nixos/modules/services/monitoring/teamviewer.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/monitoring/teamviewer.nix b/nixos/modules/services/monitoring/teamviewer.nix index 4e2ef3cbc0b7..e2271e571c40 100644 --- a/nixos/modules/services/monitoring/teamviewer.nix +++ b/nixos/modules/services/monitoring/teamviewer.nix @@ -30,14 +30,15 @@ in description = "TeamViewer remote control daemon"; wantedBy = [ "multi-user.target" ]; - after = [ "NetworkManager-wait-online.service" "network.target" ]; + after = [ "NetworkManager-wait-online.service" "network.target" "dbus.service" ]; + requires = [ "dbus.service" ]; preStart = "mkdir -pv /var/lib/teamviewer /var/log/teamviewer"; startLimitIntervalSec = 60; startLimitBurst = 10; serviceConfig = { - Type = "forking"; - ExecStart = "${pkgs.teamviewer}/bin/teamviewerd -d"; + Type = "simple"; + ExecStart = "${pkgs.teamviewer}/bin/teamviewerd -f"; PIDFile = "/run/teamviewerd.pid"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; Restart = "on-abort"; |