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

[wishlist] Please add documentation key to btrfsmaintenance-refresh.service #83

Closed
sten0 opened this issue Aug 4, 2020 · 5 comments
Closed
Milestone

Comments

@sten0
Copy link
Contributor

sten0 commented Aug 4, 2020

btrfsmaintenance-refresh.service is missing a documentation key. Please consider adding one.

@kdave
Copy link
Owner

kdave commented Aug 11, 2020

What do you mean documentation key? The purpose of the refresh service is documented in the README.

sten0 added a commit to sten0/btrfsmaintenance that referenced this issue Aug 12, 2020
This enables `systemctl help servicename` to function correctly by
displaying the documentation associated with the service.

Closes kdave#83
@sten0
Copy link
Contributor Author

sten0 commented Aug 14, 2020 via email

@sten0
Copy link
Contributor Author

sten0 commented Jun 19, 2021

Oh, and I've received confirmation that users/sysadmins actually use this feature. Unfortunately that confirmation was an Ubuntu bug that was my fault because I added my patch without adjusting it to use Debian/Ubuntu /etc/default. Yes, facepalm! Lesson learned :-) https://bugs.launchpad.net/ubuntu/+source/btrfsmaintenance/+bug/1918000

kdave pushed a commit that referenced this issue Jul 21, 2021
This enables `systemctl help servicename` to function correctly by
displaying the documentation associated with the service.

The path may be different due to packaging guidelines, the Documentation
key can be specified multiple times.

Issue: #83
Pull-request: #92
Author: Nicholas D Steeves <nsteeves@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
@sten0
Copy link
Contributor Author

sten0 commented Nov 15, 2021

Hi @kdave, Sorry for the unreasonably long delay--I missed your commit
3641063 during holidays. It was a good idea to apply it to the devel branch, because it seems like systemd upstream (and Debian, and derivatives like Ubuntu) don't have support for anything but man page docs yet...despite what freedesktop.org maintains. I wonder if SUSE has a patched version? At any rate, I opened this upstream issue: systemd/systemd#21369

If rejected, the only workaround that I can think of is generating a man page from README.md.

@kdave
Copy link
Owner

kdave commented Nov 29, 2021

No, systemctl help behaves the same. Reading just the documentation of Documentation in systemd.unit does not hint that the files are not displayed, that confused me too, though systemctl help says it opens only manual pages. Right now it will print "Can't show file: ...", it's not friendly but at least something.

Tools to generate manual page from markdown exist, go-md2man produces some weird artifacts but it could be fixed. I'll add it to git and replace the links for the Documentation.

@kdave kdave added this to the v0.5.1 milestone Nov 29, 2021
@kdave kdave closed this as completed Nov 29, 2021
kdave added a commit that referenced this issue Nov 29, 2021
Add README.md converted to the manual page format, this is acceptable by
the systemd.unit directive Documentation.

The conversion tool is go-md2man (2.0.0), some minor updates to the
mark-down version are needed.

Issue: #83
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Nov 29, 2021
As per documentation of 'systemctl help', only manual pages are
displayed, upstream issue systemd/systemd#21369 to display anything else
has been rejected. Now that we have the README formatted to manual page
we can use it.

Issue: #83
Signed-off-by: David Sterba <dsterba@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants