rename isTrigger to restart-on-upgrade
we're moving away from "trigger" services to "controller" services, and "restart-on-upgrade" is the name used by s6-rc
This commit is contained in:
1 parent
c4185617c0
commit
7c9c801afc
3 files changed
+5
-5
No files matched your search
@@ -9,7 +9,7 @@ let
|
||||
in longrun {
|
||||
name = "ifwait.${interface.name}";
|
||||
buildInputs = [ service ];
|
||||
isTrigger = true;
|
||||
restart-on-upgrade = true;
|
||||
run = ''
|
||||
${ifwait}/bin/ifwait -s ${service.name} $(output ${interface} ifname) ${state}
|
||||
'';
|
||||
|
||||
@@ -19,6 +19,6 @@ let
|
||||
termsString = stringify terms;
|
||||
in longrun {
|
||||
name = "watch-for-${serviceName}";
|
||||
isTrigger = true;
|
||||
restart-on-upgrade = true;
|
||||
run = "${uevent-watch}/bin/uevent-watch ${if symlink != null then "-n ${symlink}" else ""} -s ${serviceName} ${termsString}";
|
||||
}
|
||||
Reference in new issue
Block a user