Import Debian changes 1.1~pre7-2
tinc (1.1~pre7-2) experimental; urgency=low [ Gian Piero Carrubba ] * Init script fails to pass extra arguments to tincd. Closes: #704701 + Remove the '--' as it is passed unaltered to tincd, preventing it to read trailing parameters. + Pass extra arguments also when restarting the daemon. * Set process limits when started by ifupdown. Closes: #704702 [ Guus Sliepen ] * Check whether the tincd process is still running in the if-post-down script. Closes: #704708
This commit is contained in:
parent
a62bf04cde
commit
5c54f47af6
4 changed files with 37 additions and 3 deletions
15
debian/tinc.if-pre-up
vendored
15
debian/tinc.if-pre-up
vendored
|
|
@ -8,6 +8,21 @@ set -e
|
|||
|
||||
. /etc/default/tinc
|
||||
|
||||
# Set process limits
|
||||
|
||||
setlimits() {
|
||||
while [ $# -gt 0 ]; do
|
||||
parm=$1 ; shift
|
||||
if [ -n "$1" -a "${1#-}" = "$1" ]; then
|
||||
value=$1 ; shift
|
||||
ulimit $parm $value
|
||||
else
|
||||
ulimit $parm
|
||||
fi
|
||||
done
|
||||
}
|
||||
test -n "$LIMITS" && setlimits $LIMITS
|
||||
|
||||
# Read options from /etc/network/interfaces
|
||||
|
||||
[ -n "$IF_TINC_CONFIG" ] && EXTRA="$EXTRA -c $IF_TINC_CONFIG"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue