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
[ Guus Sliepen ]

1
debian/control vendored
View file

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

43
debian/tinc.init vendored
View file

@ -73,28 +73,45 @@ test -n "$LIMITS" && setlimits $LIMITS
start() {
$DAEMON $EXTRA -n "$@"
}
stop() {
$DAEMON -n $1 -k
}
reload() {
$DAEMON -n $1 -kHUP
}
alarm() {
$DAEMON -n $1 -kALRM
}
restart() {
stop "$@"
sleep 0.5
[ -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;
while [ -f /var/run/tinc.$1.pid ] ; do
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 "."
sleep 0.5
i=$(($i+1))
fi
sleep 0.5
done
}
reload() {
$DAEMON -n $1 -kHUP
}
alarm() {
$DAEMON -n $1 -kALRM
}
restart() {
stop "$@"
start "$@"
}