You are not logged in.
Hi,
I'm using teamviewer (https://aur.archlinux.org/packages/teamviewer), which needs a daemon to start.
When teamviewer daemon is enabled, I can't shutdown/reboot properly.
When I shutdown I can see for 90 seconds on my screen
Stopped ACPI event daemon.
A stop job is running for teamviewer remote control daemon.
Then shutdown/reboot continues normally.
This is the content of /usr/lib/systemd/system/teamviewerd.service:
[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
As workaround I decreased generally the systemd stop waiting time to 10 secs in /etc/systemd/system.conf with
DefaultTimeoutStopSec=10
When I stop teamviewerd manually before shutdown/reboot, everything is fine
Any idea or suggestions ? Maybe the unit file configuration is not appropriate ? My knowledge about systemd is too little
Last edited by midixinga (2014-10-27 14:05:16)
Offline
Edit: Instead of changing the general systemd-stop-timout, I changed it directly in the service unit only for this service:
...
[Service]
...
TimeoutStopSec=5
...
and learned something about systemd; which dependencies logic is still very hard to understand for me
Offline
I figured it out! This led me in the right direction, but did not quite work. I'm using TeamViewer 9 on Lubuntu (Ubuntu 15.04?) on this ECS mini PC. Hope this helps:
This is the file path to the teamviewer daemon service settings file:
./etc/systemd/system/teamviewer/teamviewerd.service
Underneath [Service], I had to enter "TimeoutStopSec=5s"
Note the "s" for seconds. Kinda stupid IMO, because "Sec" is in the setting name! Anyway, it works now. No more 90 second wait time and I didn't have to change the global timeout default in ./etc/systemd/system.conf
Almost found my answer here, posted my success there too: http://teamviewerforums.com/index.php?t … 35#msg6335
Offline