Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] teamviewer service: fix PID file warning #44764

Closed
wants to merge 1 commit into from

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Aug 8, 2018

Teamviewer startup script doesn't support changing of PIDFile, it manages it's PIDFile in /var/run/teamviewerd.pid. This confuses systemd (services claims to be started but it haven't created /run/teamviewerd.pid). Systemd fixes this on it's own by creating second PID file in /run/teamviewerd.pid.

If someone wants to patch teamviewer startup scripts instead - we warned, it's a mess not worth bothering...

Fixes #44307

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Teamviewer startup script doesn't support changing of PIDFile, it manages it's PIDFile in `/var/run/teamviewerd.pid`. This confuses systemd (services claims to be started but it haven't created `/run/teamviewerd.pid`). Systemd fixes this on it's own by creating second PID file in `/run/teamviewerd.pid`.

If someone wants to patch teamviewer startup scripts instead - we warned, it's a mess not worth bothering... 

Fixes NixOS#44307
@danbst danbst changed the title teamviewer service: fix PID file warning [DO NOT MERGE] teamviewer service: fix PID file warning Aug 8, 2018
@danbst
Copy link
Contributor Author

danbst commented Aug 8, 2018

Actually, after more testing I found that sometimes service can't be started after this change.

@andrew-d
Copy link
Contributor

andrew-d commented Aug 9, 2018

Not 100% sure if this would work, but: what about using BindPaths=/run:/var/run:rbind (docs) to create a bind-mount for that specific unit file?

@danbst
Copy link
Contributor Author

danbst commented Jan 17, 2019

no, I've overestimated my skills of debugging teamviewer. @andrew-d you may try that in a new PR

@danbst danbst closed this Jan 17, 2019
@danbst danbst deleted the patch-12 branch January 17, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

teamviewerd.service: Can't open PID file /run/teamviewerd.pid (yet?) after start: No such file or directory
4 participants