Merge ~paelzer/ubuntu/+source/chrony:fix-1829700-readd-sysV into ubuntu/+source/chrony:ubuntu/eoan-devel

Proposed by Christian Ehrhardt 
Status: Merged
Merge reported by: Christian Ehrhardt 
Merged at revision: 5472f0bd6f42f5cff0dda385e7286ef70435c1dc
Proposed branch: ~paelzer/ubuntu/+source/chrony:fix-1829700-readd-sysV
Merge into: ubuntu/+source/chrony:ubuntu/eoan-devel
Diff against target: 95 lines (+81/-0)
2 files modified
debian/changelog (+8/-0)
debian/init (+73/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Andreas Hasenack Needs Information
Canonical Server packageset reviewers Pending
Review via email: mp+367738@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

PPA: https://launchpad.net/~paelzer/+archive/ubuntu/eoan-chrony-test-service-interaction

TL;DR - dh fixed the ordering in postinst, so we can stop dropping sysV scripts

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

If I understand this correctly, the goal here is to just minimize the delta, right?

However, shouldn't we, as a distribution that has adopted systemd, be getting rid of sysv scripts? Don't they introduce confusion, specially when a particular action is not available in the systemd service file, and then the sysv script is used? And vice-versa?

review: Needs Information
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Debian accepted my other .service related Delta.
Once 3.5 is released we can drop more :-)

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Andreas - yes the intention here was to drop Delta (that was added without being needed after checking the details of compat 12).

IMHO - Debian seems to hard-bind to keep sysV compat to be a thing.
And I don't think that we would want to Delta everything to no more have those scripts.
Therefore I think we should drop this delta.

If we want to make an Ubuntu wide move, then probably as debhelper delta which make installinit/installsystemd only install the latter if both are present. And not in a per package Delta. That actually is an interesting topic for a Sprint I think (noted).

Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM. I doublechecked the init file is identical to the one shipping in debian/sid.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index f3070be..7d6b299 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+chrony (3.4-4ubuntu2) eoan; urgency=medium
7+
8+ * Dropped sysV change added in 3.4-4ubuntu1 (LP: #1829700):
9+ - removed d/init to avoid weird interactions between sysV and systemd
10+ [With debhelper compat level 12 this isn't an issue anymore]
11+
12+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 22 May 2019 09:10:41 +0200
13+
14 chrony (3.4-4ubuntu1) eoan; urgency=medium
15
16 * Merge with Debian unstable (LP: #1828992). Remaining changes:
17diff --git a/debian/init b/debian/init
18new file mode 100644
19index 0000000..bc376b5
20--- /dev/null
21+++ b/debian/init
22@@ -0,0 +1,73 @@
23+#! /bin/sh
24+#
25+# Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
26+# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
27+# Modified for Debian by Christoph Lameter <clameter@debian.org>
28+# Modified for chrony by John Hasler <jhasler@debian.org> 1998-2012
29+# Modified for Debian by Vincent Blut <vincent.debian@free.fr>
30+
31+### BEGIN INIT INFO
32+# Provides: chrony
33+# Required-Start: $remote_fs
34+# Required-Stop: $remote_fs
35+# Should-Start: $syslog $network $named $time
36+# Should-Stop: $syslog $network $named $time
37+# Default-Start: 2 3 4 5
38+# Default-Stop: 0 1 6
39+# Short-Description: Controls chronyd NTP time daemon
40+# Description: Chronyd is the NTP time daemon in the Chrony package
41+### END INIT INFO
42+
43+PATH=/bin:/usr/bin:/sbin:/usr/sbin
44+DAEMON=/usr/sbin/chronyd
45+NAME="chronyd"
46+DESC="time daemon"
47+PIDFILE=/run/chronyd.pid
48+CHRONY_HELPER=/usr/lib/chrony/chrony-helper
49+
50+[ -x "$DAEMON" ] || exit 0
51+
52+. /lib/lsb/init-functions
53+
54+# Override this variable by editing /etc/default/chrony.
55+DAEMON_OPTS=""
56+if [ -f /etc/default/chrony ]; then
57+ . /etc/default/chrony
58+fi
59+
60+case "$1" in
61+ start)
62+ if $0 status > /dev/null ; then
63+ log_success_msg "$NAME is already running"
64+ else
65+ log_daemon_msg "Starting $DESC" "$NAME"
66+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
67+ if [ -x $CHRONY_HELPER ]; then
68+ $CHRONY_HELPER update-daemon
69+ fi
70+ log_end_msg $?
71+ fi
72+ ;;
73+
74+ stop)
75+ log_daemon_msg "Stopping $DESC" "$NAME"
76+ start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --remove-pidfile --exec $DAEMON
77+ log_end_msg $?
78+ ;;
79+
80+ restart|force-reload)
81+ $0 stop
82+ $0 start
83+ ;;
84+
85+ status)
86+ status_of_proc -p $PIDFILE "$DAEMON" "$NAME" && exit 0 || exit $?
87+ ;;
88+
89+ *)
90+ log_action_msg "Usage: /etc/init.d/chrony {start|stop|restart|force-reload|status}"
91+ exit 1
92+ ;;
93+esac
94+
95+exit 0

Subscribers

People subscribed via source and target branches