Import Debian changes 1.0.24-2~bpo70+1

tinc (1.0.24-2~bpo70+1) wheezy-backports; urgency=medium

  * Backport to wheezy-backports.
  * Add myself to Uploaders.

tinc (1.0.24-2) unstable; urgency=medium

  * Improve the init script: stopping tinc now waits for the process to
    terminate. If that doesn't happen in 5 seconds, it will send the TERM
    signal again (which helps if tinc is waiting for a script to finish
    executing). It now also detects whether the process mentioned in the PID
    file is actually running, and if not it will exit early and without
    warnings. Closes: #748107
This commit is contained in:
Micah Anderson 2014-06-23 09:46:54 -04:00 committed by Guus Sliepen
parent cce24e0be4
commit a0bb9d443f
3 changed files with 48 additions and 12 deletions

18
debian/changelog vendored
View file

@ -1,3 +1,21 @@
tinc (1.0.24-2~bpo70+1) wheezy-backports; urgency=medium
* Backport to wheezy-backports.
* Add myself to Uploaders.
-- Micah Anderson <micah@debian.org> Mon, 23 Jun 2014 09:46:54 -0400
tinc (1.0.24-2) unstable; urgency=medium
* Improve the init script: stopping tinc now waits for the process to
terminate. If that doesn't happen in 5 seconds, it will send the TERM
signal again (which helps if tinc is waiting for a script to finish
executing). It now also detects whether the process mentioned in the PID
file is actually running, and if not it will exit early and without
warnings. Closes: #748107
-- Guus Sliepen <guus@debian.org> Wed, 14 May 2014 21:44:16 +0200
tinc (1.0.24-1) unstable; urgency=medium tinc (1.0.24-1) unstable; urgency=medium
[ Guus Sliepen ] [ Guus Sliepen ]

1
debian/control vendored
View file

@ -5,6 +5,7 @@ Maintainer: Guus Sliepen <guus@debian.org>
Standards-Version: 3.9.5 Standards-Version: 3.9.5
Build-Depends: libssl-dev, debhelper (>= 9), gettext, texinfo, zlib1g-dev, liblzo2-dev, libvdeplug-dev Build-Depends: libssl-dev, debhelper (>= 9), gettext, texinfo, zlib1g-dev, liblzo2-dev, libvdeplug-dev
Homepage: http://www.tinc-vpn.org/ Homepage: http://www.tinc-vpn.org/
Uploaders: Micah Anderson <micah@debian.org>
Package: tinc Package: tinc
Architecture: any Architecture: any

41
debian/tinc.init vendored
View file

@ -73,28 +73,45 @@ test -n "$LIMITS" && setlimits $LIMITS
start() { start() {
$DAEMON $EXTRA -n "$@" $DAEMON $EXTRA -n "$@"
} }
stop() { stop() {
$DAEMON -n $1 -k [ -f /var/run/tinc.$1.pid ] || return
read pid rest </var/run/tinc.$1.pid || return
kill -0 "$pid" 2>/dev/null || return
$DAEMON -n $1 -k || return
i=0;
sleep 0.5
# Wait for the pidfile to disappear
while [ -f /var/run/tinc.$1.pid ]; do
# And check that there is an actual process running
kill -0 "$pid" 2>/dev/null || return
if [ $i = '10' ] ; then
# It's still alive, kill it again and give up
$DAEMON -n $1 -k && sleep 0.5
break
else
echo -n "."
i=$(($i+1))
fi
sleep 0.5
done
} }
reload() { reload() {
$DAEMON -n $1 -kHUP $DAEMON -n $1 -kHUP
} }
alarm() { alarm() {
$DAEMON -n $1 -kALRM $DAEMON -n $1 -kALRM
} }
restart() { restart() {
stop "$@" stop "$@"
sleep 0.5
i=0;
while [ -f /var/run/tinc.$1.pid ] ; do
if [ $i = '10' ] ; then
break
else
echo -n "."
sleep 0.5
i=$(($i+1))
fi
done
start "$@" start "$@"
} }