summaryrefslogtreecommitdiffstats
path: root/debian/chrony.if-up
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/chrony.if-up11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/chrony.if-up b/debian/chrony.if-up
new file mode 100644
index 0000000..4cc0796
--- /dev/null
+++ b/debian/chrony.if-up
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+[ -x /usr/sbin/chronyd ] || exit 0
+
+if [ -e /run/chrony/chronyd.pid ]; then
+ chronyc onoffline > /dev/null 2>&1
+fi
+
+exit 0