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

Add linux section about running talon from systemd user service with watchdog #294

Open
fidgetingbits opened this issue Jul 25, 2024 · 0 comments

Comments

@fidgetingbits
Copy link
Contributor

fidgetingbits commented Jul 25, 2024

From a slack discussion about auto-starting talon on login:

https://gist.github.com/fidgetingbits/a9c9d4786dd28c0f5224071280edfb66
Those are auto-generated from my nix config, so there might be some oddities, but should mostly work for others with fixed paths I think. The reason for a watchdog is that talon is still running and spitting stalled warnings to the log, so systemd never actually detects that it needs to be restarted. I think systemd watchdog only works if the running service exits/crashes. So here the separate watchdog service monitors the talon log. This type of stall happens if you make a mistake while developing new features or accidentally run a command that blocks, so is nice to catch it and have it restart without having to go find a keyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant