forked from DGNum/liminix
unconditionally restart trigger services on liminix-rebuild
We call s6-rc -u -p default to restart/start the base services on a rebuild, otherwise services that are only in the new configuration won't come up. However, this stops any service started by a trigger. So, workaround is to restart the trigger service and expect it to restart the services it manages if they're needed
This commit is contained in:
parent
a192f08881
commit
4795dd05b7
5 changed files with 16 additions and 5 deletions
|
@ -9,6 +9,7 @@ let
|
|||
in longrun {
|
||||
name = "ifwait.${interface.name}";
|
||||
buildInputs = [ service ];
|
||||
isTrigger = true;
|
||||
run = ''
|
||||
${ifwait}/bin/ifwait -s ${service.name} $(output ${interface} ifname) ${state}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue