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

Syntax errors prevent our Avahi run-late.conf from having any effect? #141

Open
SyntaxColoring opened this issue Oct 22, 2021 · 1 comment
Labels
bug This issue describes a bug robot-svcs Robot Services services This pr or issue is about adding or editing service configs

Comments

@SyntaxColoring
Copy link
Contributor

SyntaxColoring commented Oct 22, 2021

#16 added this file to "Run avahi-daemon later than usual during boot so it actually picks up the changed hostname":

[unit]
After=multi-user.target
[install]
WantedBy=opentrons.target

However, this might not be having any effect, since unit should be Unit and install should be Install.

Oct 22 18:21:48 red-dust systemd[1]: /usr/lib/systemd/system/avahi-daemon.service.d/run-late.conf:1: Unknown section 'unit'. Ignoring.
Oct 22 18:21:48 red-dust systemd[1]: /usr/lib/systemd/system/avahi-daemon.service.d/run-late.conf:4: Unknown section 'install'. Ignoring.
  • Investigate whether this is doing anything now.
  • Investigate whether running Avahi late is still required.
  • Investigate whether fixing this will break anything.
@SyntaxColoring SyntaxColoring added bug This issue describes a bug robot-svcs Robot Services services This pr or issue is about adding or editing service configs labels Oct 22, 2021
@SyntaxColoring
Copy link
Contributor Author

The lifetime of the avahi-daemon process is also a little intertwined with update-server. Currently, when update-server starts up:

  • It will systemctl restart the Avahi process after setting the system's static hostname.
  • It will open D-Bus connections to Avahi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a bug robot-svcs Robot Services services This pr or issue is about adding or editing service configs
Projects
None yet
Development

No branches or pull requests

1 participant