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:
@@ -21,11 +21,16 @@ in stdenvNoCC.mkDerivation {
|
||||
if test -d $i; then
|
||||
for j in $i/* ; do
|
||||
if test -f $j/type ; then
|
||||
if test -e $j/restart-on-upgrade; then
|
||||
flag=force-restart
|
||||
else
|
||||
unset flag
|
||||
fi
|
||||
case $(cat $j/type) in
|
||||
longrun|oneshot)
|
||||
# s6-rc-update only wants oneshots in its
|
||||
# s6-rc-update only wants atomics in its
|
||||
# restarts file
|
||||
echo $(basename $j) " " $i >> $out/hashes
|
||||
echo $(basename $j) " " ''${flag-$i} >> $out/hashes
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
Reference in New Issue
Block a user