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
Feel free to copy systemd@g.o if you need help with the systemd unit.
(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?
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
(In reply to bdouxx from comment #3) If the process does not write a PID file, that makes sense.
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
Resolved in net-misc/teamviewer-10.0.41499-r1. Thanks for the help, all.