* Enabled hardened build flags, thanks Moritz Muehlenhoff (closes: #657846)
* Packaging updates * Move to 3.0 (native) source format * Bump DH compat level to 8 * Fix ordering of stdio.h/syslog.h includes (closes: #707385) * Create accounting_dir in init script if necessary (closes: #418156) * Bump Standards-Version to 3.9.4.0 * Add build-arch/build-indep targets to debian/rules * Fix: compiling Warning
This commit is contained in:
parent
26a2025a1b
commit
ecdddd6065
10 changed files with 35 additions and 46 deletions
4
debian/init.d
vendored
4
debian/init.d
vendored
|
|
@ -19,6 +19,7 @@ DAEMON=/usr/sbin/l2tpns
|
|||
NAME=l2tpns
|
||||
DESC=l2tpns
|
||||
ARGS="-d"
|
||||
ACCTDIR=$(grep "set accounting_dir" /etc/l2tpns/startup-config | sed -e 's/.* "//' -e 's/".*//')
|
||||
|
||||
test -f $DAEMON || exit 0
|
||||
|
||||
|
|
@ -27,6 +28,9 @@ set -e
|
|||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting $DESC: "
|
||||
if [ ! -d "$ACCTDIR" ]; then
|
||||
mkdir -p "$ACCTDIR"
|
||||
fi
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
||||
--exec $DAEMON -- $ARGS
|
||||
echo "$NAME."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue