summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2018-03-21 15:51:01 +0300
committerSergey Popov <pinkbyte@gentoo.org>2018-03-21 15:51:53 +0300
commitdd6e7028de6652829f79b7c2bb0e16269474bda4 (patch)
tree31e41a192f5259593f3269576fd7de6e8daedef4 /net-dialup/accel-ppp
parentsci-misc/cdfplayer: bump to 11.3.0 (diff)
downloadgentoo-dd6e7028de6652829f79b7c2bb0e16269474bda4.tar.gz
gentoo-dd6e7028de6652829f79b7c2bb0e16269474bda4.tar.bz2
gentoo-dd6e7028de6652829f79b7c2bb0e16269474bda4.zip
net-dialup/accel-ppp: change default shutdown mode
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'net-dialup/accel-ppp')
-rw-r--r--net-dialup/accel-ppp/files/accel-ppp.confd7
-rw-r--r--net-dialup/accel-ppp/files/accel-ppp.initd4
2 files changed, 9 insertions, 2 deletions
diff --git a/net-dialup/accel-ppp/files/accel-ppp.confd b/net-dialup/accel-ppp/files/accel-ppp.confd
index 41073c6529c6..7a4d2d3712bd 100644
--- a/net-dialup/accel-ppp/files/accel-ppp.confd
+++ b/net-dialup/accel-ppp/files/accel-ppp.confd
@@ -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"
diff --git a/net-dialup/accel-ppp/files/accel-ppp.initd b/net-dialup/accel-ppp/files/accel-ppp.initd
index abbc4286228a..357ae424edc9 100644
--- a/net-dialup/accel-ppp/files/accel-ppp.initd
+++ b/net-dialup/accel-ppp/files/accel-ppp.initd
@@ -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