Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552564 - net-misc/teamviewer-10.0.41499 problem to start with systemd (pid file)
Summary: net-misc/teamviewer-10.0.41499 problem to start with systemd (pid file)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-19 17:00 UTC by bdouxx
Modified: 2015-06-30 19:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bdouxx 2015-06-19 17:00:24 UTC
launch service with systemd failed

problem with pid file.

Reproducible: Always

Steps to Reproduce:
1.systemctl enable teamviewerd10.service
2.systemctl start teamviewerd10.service

Actual Results:  


> systemctl enable teamviewerd10.service
Created symlink from /etc/systemd/system/graphical.target.wants/teamviewerd10.service to /usr/lib64/systemd/system/teamviewerd10.service.
> systemctl start teamviewerd10.service
Job for teamviewerd10.service failed because a timeout was exceeded. See "systemctl status teamviewerd10.service" and "journalctl -xe" for details.

 systemctl status teamviewerd10.service
● teamviewerd10.service - TeamViewer remote control daemon
   Loaded: loaded (/usr/lib64/systemd/system/teamviewerd10.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since ven. 2015-06-19 18:56:35 CEST; 58s ago
  Process: 6726 ExecStart=/opt/teamviewer10/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)

juin 19 18:55:05 zotac_bee systemd[1]: Starting TeamViewer remote control daemon...
juin 19 18:55:05 zotac_bee systemd[1]: teamviewerd10.service: PID file /var/run/teamviewerd10.pid not readable (yet?) after start: No such file or directory
juin 19 18:56:35 zotac_bee systemd[1]: teamviewerd10.service: Start operation timed out. Terminating.
juin 19 18:56:35 zotac_bee systemd[1]: Failed to start TeamViewer remote control daemon.
juin 19 18:56:35 zotac_bee systemd[1]: teamviewerd10.service: Unit entered failed state.

-- L'unité (unit) teamviewerd10.service a commencé à démarrer.
juin 19 18:55:05 zotac_bee systemd[1]: teamviewerd10.service: PID file /var/run/teamviewerd10.pid not readable (yet?) after start: No such file or directory
juin 19 18:56:35 zotac_bee systemd[1]: teamviewerd10.service: Start operation timed out. Terminating.
juin 19 18:56:35 zotac_bee systemd[1]: Failed to start TeamViewer remote control daemon.
-- Subject: L'unité (unit) teamviewerd10.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) teamviewerd10.service a échoué, avec le résultat failed.
juin 19 18:56:35 zotac_bee systemd[1]: teamviewerd10.service: Unit entered failed state.
juin 19 18:56:35 zotac_bee systemd[1]: teamviewerd10.service: Failed with result 'timeout'.
juin 19 18:56:35 zotac_bee polkitd[1814]: Unregistered Authentication Agent for unix-process:6718:1756975 (system bus name :1.95, object path /org/freedesktop/PolicyKit1/Aut

ll /var/run/teamviewerd*     
-rw-r--r-- 1 root root 4 19 juin  18:55 /var/run/teamviewerd.ipc
-rw-r--r-- 1 root root 4 19 juin  18:55 /var/run/teamviewerd.pid


Expected Results:  
daemon laucnh
Comment 1 Mike Gilbert gentoo-dev 2015-06-20 22:43:41 UTC
Feel free to copy systemd@g.o if you need help with the systemd unit.
Comment 2 Vasilis Lourdas 2015-06-28 10:34:50 UTC
(In reply to Mike Gilbert from comment #1)
> Feel free to copy systemd@g.o if you need help with the systemd unit.

I'm experiencing the same issue here with systemd (migrated to it just yesterday). What do you propose to do?
Comment 3 bdouxx 2015-06-29 06:48:43 UTC
To resolve it

in the file /usr/lib64/systemd/system/teamviewerd10.service

I remove 10 in the line of the PID file
PIDFile = /var/run/teamviewerd.pid



I don't know if it is a good solution, but it work for me
Comment 4 Mike Gilbert gentoo-dev 2015-06-30 14:19:37 UTC
(In reply to bdouxx from comment #3)

If the process does not write a PID file, that makes sense.
Comment 5 Andreas Mielke 2015-06-30 19:39:55 UTC
The Path to Pid File is wrong.

The entry in /usr/lib64/systemd/system/teamviewerd10.service:
PIDFile = /var/run/teamviewerd10.pid

This is wrong



Correctly it must be:
PIDFile = /var/run/teamviewerd.pid
Comment 6 Adam Feldman gentoo-dev 2015-06-30 19:50:23 UTC
Resolved in net-misc/teamviewer-10.0.41499-r1.

Thanks for the help, all.