openrc-run.8: Add "Default stop/start" section and table.#973
openrc-run.8: Add "Default stop/start" section and table.#973navi-desu merged 1 commit intoOpenRC:masterfrom
Conversation
N-R-K
left a comment
There was a problem hiding this comment.
Formatting looks good and renders well using man on my local setup. Some issues with the content tho:
man/openrc-run.8
Outdated
| error-log:start:: | ||
| error-logger:start:: | ||
| output-log:start:: | ||
| output-logger:start:: |
There was a problem hiding this comment.
I'm fairly certain supervise-daemon supports all the logging vars. You can see them referenced in the default start function too:
Lines 37 to 40 in ef3f90a
I suppose you missed it? Same with some other vars like umask.
There was a problem hiding this comment.
This is what i meant by "i'm not sure what to consult to find all the appropriate content for the supervise-daemon and s6 columns." :-) Now that i know i should look at the sources for supervise-daemon.sh and (presumably) s6.sh, i'll try to update the PR accordingly. (i'm not actually familiar with any of these three scripts or using them; the only reason i ended up opening #771 was due to the discussion following https://bugs.gentoo.org/948143#c1; that bug came about as a result of me trying to help someone on the gentoo-user list.)
currently that boils down to looking into sh/{s6,supervise-daemon}.sh and looking at what variables they expand on (oh sorry, i missed the other reply ~w~) |
adf0430 to
acc1027
Compare
|
Thank you both. :-) PR updated. i hope that i've got the information in the "start-stop-daemon" and "supervise-daemon" columns correct. i actually found it quite challenging to try to do so methodically, due to the calls to Re. the |
|
Looks aright. Except |
@skarnet might be able to help with this part. |
|
@N-R-K @flexibeast The list of user-accessible variables is maintained, as it should, in the documentation 😉 It should be accurate. Please keep the page up-to-date if you make changes. |
acc1027 to
2ab6168
Compare
|
🤬 I had to log into a machine that has groff installed in order to, you know, read the thing. 🤬 You of all people should know better than to make me review an mdoc file 😝 The table looks... good, albeit a little confusing for the uninitiated? But the way What happens with I don't think that's very important though, people should not modify live service files anyway. I think you can keep the mention of However, reading that man page, I saw a much bigger issue. In the DESCRIPTION section, all the listed Then looking at the table again:
|
Sorry, i don't follow .... If your daily driver doesn't have groff installed, doesn't it use mandoc, an invocation for which i provided upthread? i'm guessing you might use Adélie or Alpine, which - to the best of my knowledge - both use mandoc, but if you don't use either of those, which (i presume *n*x-ish) OS are you using that doesn't use groff or mandoc? More generally, i'm afraid i'm getting overwhelmed by all this. What started out as what i intended to be small drive-by doc improvement by me in #771, with no implied ongoing commitment from me, keeps becoming more and more complicated and requiring more and more work from me. This is particularly problematic for me given that, on top of my pre-existing disabilities (including ME/CFS), plus the severe and continuing chronic pain which started last year (and which has caused me to need to hand over maintenance of all my *-man-pages projects, in order to significantly reduce my ICT commitments), right now i'm also having to deal with a bout of RSV. So at this point, if this PR can't be simply finalised with only a few small changes in the near future, i'm going to have to abandon it; i simply don't have the bandwidth for all this. |
|
Sorry, I did not mean to pile on you. Please don't take my comments for more serious than they are. My daily driver, inasmuch as I have one, is a system built from scratch, and I have neither groff nor mandoc nor anything that can format man pages, because I don't use those. I do have access to plenty of accounts where these tools exist, though, so I could log into one of them and read the formatted text. I played up my hate for groff/mandoc because it's a meme at this point. You asked me to proofread the changes, so I did, and since it had taken me some investment, I wanted to do it well while I was at it. That is why, when I noticed other things in the man page that do not accurately document the current behaviour of If you don't want to keep working on this PR, it's all good. Your changes look good to me; the PR can be merged, and we can modify the man page to better reflect the current state of Please get all the rest you need and take care of your health first and foremost. |
iirc yeah, supervise-daemon has
command and command_args are separate with start-stop-daemon because it needed to support --startas, aka, "use this custom argv[0] please!" supervise-daemon does not support such flag, but it kept the command_args variable for porting reasons we can push for sunsetting command_args though, specially in the future, if we can manage to get arrays in posix sh either way, this PR looks good to me asw, so, thanks for the work! |
Obsoletes #771; initial pass.
i've created the table under an
Ss('Subsection') macro, rather than under anShmacro, which is intended to be used for a higher-level standard manual section headings, as described in mdoc(7)'s "MANUAL STRUCTURE" section (neither groff_man(7) nor groff_man_style(7) provide such a description). In this case, i've added the subsection heading "Default start/stop" within "DESCRIPTION", which has necessitated using anotherSsmacro to clearly separate it from a following subsection, "Ambient process capabilities".To test the output with groff, do:
(The
-Toption specifies the output format; other possible options includeasciiandlatin1.)To test the output with mandoc, do:
The contents of the table are based on:
i'm not sure what to consult to find all the appropriate content for the
supervise-daemonands6columns. (For context, i'm the porter of the HTML documentation for various skaware projects to mdoc(7) - s6-man-pages, s6-rc-man-pages, etc. - although i'm currently in the process of transferring maintainership of these ports to someone else.)In terms of formatting:
TSmacro (i.e. the one ending in a full stop,.). To test out other possibilities, refer to tbl(7)'s "Layout" section.doublebox/doubleframeoptions to create a more substantial outline for the edges of the table, but the output was clearly unsatisfactory. (Adddoubleframeto the start of the first line after theTSmacro to see what i mean.).... i think that's everything for now!