net-dialup/accel-ppp: change default shutdown mode
authorSergey Popov <pinkbyte@gentoo.org>
Wed, 21 Mar 2018 12:51:01 +0000 (15:51 +0300)
committerSergey Popov <pinkbyte@gentoo.org>
Wed, 21 Mar 2018 12:51:53 +0000 (15:51 +0300)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-dialup/accel-ppp/files/accel-ppp.confd
net-dialup/accel-ppp/files/accel-ppp.initd

index 41073c6529c6b0ec3b96a717f7acfba395866d92..7a4d2d3712bdb91719c27a0c356853f63dacde64 100644 (file)
@@ -8,3 +8,10 @@ RADATTR_DIR="/run/radattr"
 
 # Daemon options
 ACCEL_PPPD_OPTS="-d -c /etc/accel-ppp.conf"
+
+# Set type of shutdown for accel-ppp daemon
+# Default is 'hard' shutdown due to freezes
+# when using upstream default('soft') with
+# hundreds of sessions.
+# Uncomment and set different mode if you wish
+#SHUTDOWN_MODE="hard"
index abbc4286228a242163c3b46b6752e3d1a7abda20..357ae424edc9c01ad3286e07d75b4f5251e81e8e 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License, v2 or later
 
 extra_started_commands="reload"
@@ -23,7 +23,7 @@ start() {
 
 stop() {
        ebegin "Stopping accel-pppd"
-       accel-cmd shutdown
+       accel-cmd shutdown ${SHUTDOWN_MODE:-hard}
        [ $? -ne 0 ] && kill -9 $(pidof accel-pppd)
        PID="$(cat ${ACCEL_PPPD_PID})"
        while [ -n "${PID}" -a -d "/proc/${PID}" ]; do