-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
Environment
alpine linux 3.24.0_alpha20251224
openrc 0.63-r1
Reproduction
#!/sbin/openrc-run
name="demo"
command="true"
$ ./demo reload
/usr/libexec/rc/sh/openrc-run.sh: line 224: s6-svc: not found
Analysis
openrc-run.sh.in always imports supervisor scripts:
Lines 261 to 265 in a951b9a
| # load service supervisor functions | |
| sourcex "@LIBEXECDIR@/sh/runit.sh" | |
| sourcex "@LIBEXECDIR@/sh/s6.sh" | |
| sourcex "@LIBEXECDIR@/sh/start-stop-daemon.sh" | |
| sourcex "@LIBEXECDIR@/sh/supervise-daemon.sh" |
s6.sh changes the default extra_commands:
Line 25 in a951b9a
| extra_commands="restart reload ${extra_commands}" |
commands defined only for s6 supervisor:
Lines 225 to 233 in a951b9a
| restart() { | |
| _s6_set_variables | |
| s6-svc -r -- "$_service" | |
| } | |
| reload() { | |
| _s6_set_variables | |
| s6-svc -h -- "$_service" | |
| } |
also in supervise-daemon.sh:
Line 13 in a951b9a
| extra_commands="healthcheck unhealthy ${extra_commands}" |
Metadata
Metadata
Assignees
Labels
No labels