summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-watchdog/files/sysupgrade.hook
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/package/freifunk-watchdog/files/sysupgrade.hook')
-rw-r--r--contrib/package/freifunk-watchdog/files/sysupgrade.hook7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/package/freifunk-watchdog/files/sysupgrade.hook b/contrib/package/freifunk-watchdog/files/sysupgrade.hook
new file mode 100644
index 000000000..e124c39c5
--- /dev/null
+++ b/contrib/package/freifunk-watchdog/files/sysupgrade.hook
@@ -0,0 +1,7 @@
+kill_freifunk_watchdog() {
+ v "Terminating ffwatchd..."
+ killall ffwatchd
+ killall crond
+}
+
+export sysupgrade_pre_upgrade="${sysupgrade_pre_upgrade:+$sysupgrade_pre_upgrade }kill_freifunk_watchdog"