systemd: move unit into separate files#43
Conversation
…ckages Just in case someone stumbles over `systemd.md`, refer back to README.
|
I removed the socket activation parts (and opened #44 for it). I mistakenly assumed this would already be supported. |
|
I think there's two competing objectives at play in this PR:
I think it's proper that, for a manual install, it goes in Perhaps we could write the systemd unit for the Or perhaps we could template the systemd unit and have a script to generate it as appropriate? |
That way, it can seamlessly be used in official packages, too. Also, update the unit file to not point to a absolute location, which is possible since systemd >= 239. Distributions with older systemd versions, or without enabled user name space might need to edit it, add a note for them.
|
I'm not convinced in using something to template it. Go doesn't seem to have a concept of installing more than a single binary, and as we can't cover all usecases automatically anyway, writing out own makefile and templating solution causes more harm than just providing a unit file that works in 90% of the usecases, while mentioning points that might need adjustment. I pushed a new version that doesn't use an absolute path as written in #43 (comment). Debian Stable, Archlinux, Fedora >=29, Manjaro and Ubuntu >=19.10 all have systemd >= 239, so the I added a comment noting the PTAL. |
|
Awesome, thank you for doing the research, too! |
|
@FiloSottile can you craft a release containing this? |
Having them available upstream in a individual text file simplifies packaging.
Also, encourage using the official packages where available (and direct back to
READMEfor a list).Also, add a
yubikey-agent.socketfile for file socket based activation.