Package-Manager: Portage-2.3.19, Repoman-2.3.6
# 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"
#!/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"
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