Package: chrony
Version: 2.40-1
Severity: wishlist
Tags: patch
Dear Maintainer,
little patch(es) for adding OPTS to chrony startscript in
stretch 2.4-1
jessie 1.30
so i can deliver options to starting chronyd.
furthermore my /etc/default/chronyd as example
(deactivating ipv6-support on my system)
Regards
(System information below is my jessie)
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (101, 'testing'), (100,
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages chrony depends on:
ii install-info 5.2.0.dfsg.1-6
ii libc6 2.19-18+deb8u4
ii libcap2 1:2.24-8
ii libedit2 3.1-20140620-2
ii libtomcrypt0 1.17-6
ii lsb-base 4.1+Debian13+nmu1
ii net-tools 1.60-26+b1
ii timelimit 1.8-1
ii ucf 3.0030
Versions of packages chrony recommends:
ii udev 230-7~bpo8+2
chrony suggests no packages.
-- Configuration Files:
/etc/init.d/chrony changed [not included]
-- no debconf information
--- chrony_0_20131221 2013-12-21 00:42:00.000000000 +0100
+++ chrony_20160406_todiff 2016-08-13 17:44:27.877312815 +0200
@@ -27,6 +27,8 @@
. /lib/lsb/init-functions
+test -f /etc/default/$NAME && . /etc/default/$NAME
+
putonline ()
{ # Do we have a default route? If so put chronyd online.
if timelimit -q -s9 -t5 -- netstat -rn 2>/dev/null | grep -q '0\.0\.0\.0'
@@ -56,7 +58,7 @@
case "$1" in
start)
- start-stop-daemon --start --verbose --exec $DAEMON
+ start-stop-daemon --start --verbose --exec $DAEMON -- $OPTS
case "$?" in
0) # daemon successfully started
putonline
@@ -77,7 +79,7 @@
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --exec $DAEMON
sleep 1
- start-stop-daemon --start --verbose --exec $DAEMON -- -r
+ start-stop-daemon --start --verbose --exec $DAEMON -- -r $OPTS
case "$?" in
0) # daemon successfully started
putonline
--- chrony_0_20160617 2016-06-17 20:37:19.000000000 +0200
+++ chrony_20160813stretch 2016-08-13 17:50:40.316071778 +0200
@@ -27,6 +27,8 @@
. /lib/lsb/init-functions
+[ -r "/etc/default/$NAME" ] && . "/etc/default/$NAME"
+
putonline ()
{ # Do we have a default route? If so put chronyd online.
if ip r 2>/dev/null | grep -q '^default'; then
@@ -45,7 +47,7 @@
case "$1" in
start)
- start-stop-daemon --start --verbose --exec $DAEMON
+ start-stop-daemon --start --verbose --exec $DAEMON -- $OPTS
case "$?" in
0) # daemon successfully started
putonline
@@ -66,7 +68,7 @@
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --exec $DAEMON
sleep 1
- start-stop-daemon --start --verbose --exec $DAEMON -- -r
+ start-stop-daemon --start --verbose --exec $DAEMON -- -r $OPTS
case "$?" in
0) # daemon successfully started
putonline
#!/bin/sh
OPTS=""
[ -d /proc/sys/net/ipv6 ] || OPTS="$OPTS -4"