ifwait block if s6-rc lock is held

otherwise it doesn't trigger the service if something else is
slow to start
This commit is contained in:
Daniel Barlow 2024-03-16 23:09:41 +00:00
parent 28a5dec7dd
commit 77f1a78331

View file

@ -37,8 +37,8 @@
(when (not (= up wanted?))
(set up
(if wanted?
(pcall system (.. "s6-rc -u change " service))
(not (pcall system (.. "s6-rc -d change " service)))))
(pcall system (.. "s6-rc -b -u change " service))
(not (pcall system (.. "s6-rc -b -d change " service)))))
))
(fn run [args event-fn]