# HG changeset patch # User Franz Glasner # Date 1677197239 -3600 # Node ID 7c597ee2c8d9c7c7d7ac63c64fc19675283eafad # Parent d83f877d784973460affeb556fa60332a109d111 Implement profile support for the daily script 720.local-triggered-action diff -r d83f877d7849 -r 7c597ee2c8d9 etc/periodic/daily/720.local-triggered-action --- a/etc/periodic/daily/720.local-triggered-action Thu Feb 23 22:00:40 2023 +0100 +++ b/etc/periodic/daily/720.local-triggered-action Fri Feb 24 01:07:19 2023 +0100 @@ -15,20 +15,102 @@ source_periodic_confs fi +# Set it to "YES" to enable this script : ${daily_local_triggered_action_enable:=NO} +# The readability of any of the given files triggers the action : ${daily_local_triggered_action_files=} -# e.g. "service nginx onestatus" +# +# A condition to check also before executing an action. +# +# May be a Shell pipeline. +# E.g. "service nginx onestatus || service apache2 onestatus" +# : ${daily_local_triggered_action_condition=} -# e.g. "service nginx reload" +# +# The action to execute. +# +# May be a Shell pipeline. +# E.g. "{ service nginx onereload && service apache2 onereload ; } || true" +# : ${daily_local_triggered_action_action=} +# +# By default all files triggering the action are removed. Set to "NO" if +# the files should remain. +# : ${daily_local_triggered_action_files_remove:=YES} +# +# If profiles are defined this script is re-executed once for for every +# profile with the profile as parameter. +# No global options above besides "daily_local_triggered_action_enable" are +# used. +# Instead profile level configurations are named +# daily_local_triggered_action__