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

Subscribers

People subscribed via source and target branches