TeamViewer Forum

General Category => Teamviewer for Linux => Topic started by: midixinga on October 26, 2014, 08:42:48 AM

Title: teamviewerd breaks systemd-shutdown
Post by: midixinga on October 26, 2014, 08:42:48 AM
Hi,

when teamviewer daemon is enabled, I can't shutdown properly; after stopping ACPI Daemon systemd (v216.3) tells me "A stop job is running" for teamviewer remote control daemon.
After 90 seconds (I think systemd timeout) the system is shutting down.

This is the content of /usr/lib/systemd/system/teamviewerd.service:
Code: [Select]
[Unit]
Description = TeamViewer remote control daemon
Wants = display-manager.service
After = NetworkManager-wait-online.service network.target

[Service]
Type = forking
PIDFile = /var/run/teamviewerd.pid
ExecStart = /opt/teamviewer9/tv_bin/teamviewerd -d
Restart = on-abort
StartLimitInterval = 60
StartLimitBurst = 10

[Install]
WantedBy = graphical.target

Any idea or suggestions ?

Title: Re: teamviewerd breaks systemd-shutdown
Post by: midixinga on October 27, 2014, 07:15:59 AM
Workaround:

I inserted:

TimeoutStopSec=5
below [Service] in the unit-file
Title: Re: teamviewerd breaks systemd-shutdown
Post by: alphacompnet on May 15, 2015, 11:46:03 AM
Helpful to anyone who has to use TeamViewer9 still:
On Lubuntu, I had to have a lowercase "s" after the seconds value!!! Example:

Code: [Select]
TimeoutStopSec=5s
Without this, the OS refused to recognize the Timout value as 5 seconds. Kind of stupid, since the very name has "Sec" in it. -A