-
-
Notifications
You must be signed in to change notification settings - Fork 53
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 support for passing arguments to services #386
Conversation
4a909f0
to
c05717d
Compare
i'm a bit confused by the aarch64 failure after i force pushed? |
dceaa89
to
1729dbc
Compare
actually that was probably just a readiness race for the dependency chain, i made all the dependencies scripted (that should address that) |
I had a quick look and it seems ok, I'll review properly on the weekend |
Ok, I've looked at this fairly thoroughly. The only issue I have is that it's introducing a separate function to do another kind of substitution (what you've referred to in the docs as "minimal variable substitution"). While I get the point of minimal substitution (i.e. mostly to simplify implementation of dependency resolution) and I'm somewhat ok with not having environment variables available for these substitutions, I don't see any real point in having different rules and and especially implementation of the substitution function. Why not make substitution for dependencies just support the full, normal substitution syntax, with the only caveat that the substitution happens before the Also, I think that A couple of minor formatting nits: there is an |
yeah that's fair, i can make these changes wrt manpages we should probably consider moving to something better to generate them, e.g. https://git.sr.ht/~sircmpwn/scdoc because the m4 macros are a serious pain |
You mean the roff macros, right? Yeah I've been thinking for a while about a better solution. |
i did the changes as you asked, let me know if it's as you wanted it |
Maybe a couple of other minor things, I'll do a full review this evening (AU time). |
I need to clean up the loading code anyway, for now i'm merging as-is. |
The argument is a part of the full service name always. Therefore, each argument instantiation is a separate instance of the service, with separate loading.
The following cases are supported:
dinitctl
command that takes an a service namedocumentation is updated, load+integration tests are updated/added
while at it, i found that depends-ms.d was being parsed wrong (it was never reading the dir) so i fixed that too