mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
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.
This commit is contained in:
parent
200e959995
commit
953bbc0d73
|
@ -30,14 +30,15 @@ in
|
||||||
description = "TeamViewer remote control daemon";
|
description = "TeamViewer remote control daemon";
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
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";
|
preStart = "mkdir -pv /var/lib/teamviewer /var/log/teamviewer";
|
||||||
|
|
||||||
startLimitIntervalSec = 60;
|
startLimitIntervalSec = 60;
|
||||||
startLimitBurst = 10;
|
startLimitBurst = 10;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "forking";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.teamviewer}/bin/teamviewerd -d";
|
ExecStart = "${pkgs.teamviewer}/bin/teamviewerd -f";
|
||||||
PIDFile = "/run/teamviewerd.pid";
|
PIDFile = "/run/teamviewerd.pid";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
Restart = "on-abort";
|
Restart = "on-abort";
|
||||||
|
|
Loading…
Reference in a new issue