You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see in the next example, service1 get restarted 4 times:
$ cat /etc/init.d/service1
#!/sbin/openrc-runstart() {
echo"SERVICE 1 FAILED"exit 1
}
$ cat /etc/init.d/service2
#!/sbin/openrc-runstart() {
echo"SERVICE 2 FAILED"exit 1
}
$ cat /etc/init.d/service3
#!/sbin/openrc-runstart() {
echo"SERVICE 3 FAILED"exit 1
}
$ cat /etc/init.d/service4
#!/sbin/openrc-runstart() {
echo"SERVICE 4 FAILED"exit 1
}
$ cat /etc/conf.d/service2
rc_need="service1"
$ cat /etc/conf.d/service3
rc_need="service2"
$ cat /etc/conf.d/service4
rc_need="service3"
$ doas rc-service service4 start
SERVICE 1 FAILED
* ERROR: service1 failed to start
SERVICE 1 FAILED
* ERROR: service1 failed to start
* ERROR: cannot start service2 as service1 would not start
SERVICE 1 FAILED
* ERROR: service1 failed to start
SERVICE 1 FAILED
* ERROR: service1 failed to start
* ERROR: cannot start service2 as service1 would not start
* ERROR: cannot start service3 as service1 would not start
* ERROR: cannot start service4 as service1 would not start
I would expect for OpenRc to try to start it once, and fail immediately, and for the stderr message to look like:
$ doas rc-service service4 start
SERVICE 1 FAILED
* ERROR: service1 failed to start
* ERROR: cannot start service2 as service1 would not start
* ERROR: cannot start service3 as service2 can not start
* ERROR: cannot start service4 as service3 can not start
The text was updated successfully, but these errors were encountered:
As you can see in the next example, service1 get restarted 4 times:
I would expect for OpenRc to try to start it once, and fail immediately, and for the stderr message to look like:
The text was updated successfully, but these errors were encountered: