[pkg-ntp-maintainers] [pkg-ntp] 01/01: Add trigger to restart ntp on leapfile update
Bernhard Schmidt
berni at moszumanska.debian.org
Fri Jun 9 23:04:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
berni pushed a commit to branch experimental
in repository pkg-ntp.
commit 138be12c3a127b868d5a0b69b3c09b9078de1028
Author: Bernhard Schmidt <berni at debian.org>
Date: Sat Jun 10 00:23:16 2017 +0200
Add trigger to restart ntp on leapfile update
---
debian/ntp.postinst | 6 ++++++
debian/ntp.triggers | 2 ++
2 files changed, 8 insertions(+)
diff --git a/debian/ntp.postinst b/debian/ntp.postinst
index 5fa7120..71d1139 100644
--- a/debian/ntp.postinst
+++ b/debian/ntp.postinst
@@ -30,6 +30,12 @@ if [ "$1" = "configure" ]; then
fi
fi
+if [ "$1" = "triggered" ]; then
+ # The default configuration uses a leapfile from tzdata
+ # restart ntp on changes
+ invoke-rc.d ntp try-restart || true
+fi
+
installinit_error() {
exit $?
}
diff --git a/debian/ntp.triggers b/debian/ntp.triggers
new file mode 100644
index 0000000..0c95150
--- /dev/null
+++ b/debian/ntp.triggers
@@ -0,0 +1,2 @@
+# Used as leapfile in default configuration
+interest-noawait /usr/share/zoneinfo/leap-seconds.list
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ntp/pkg-ntp.git
More information about the pkg-ntp-maintainers
mailing list