summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2016-05-05 17:50:22 +0300
committerSergey Popov <pinkbyte@gentoo.org>2016-05-05 18:16:00 +0300
commit2741de3d15cf1c7422f46551a06b4841a49f0918 (patch)
tree0b4d6909accf8f4e9ad2e457fbc9f9ad7cf9b1c1 /net-dialup/accel-ppp
parentmail-client/thunderbird-bin-38.8.0: version bump for security bug 581326 (diff)
downloadgentoo-2741de3d15cf1c7422f46551a06b4841a49f0918.tar.gz
gentoo-2741de3d15cf1c7422f46551a06b4841a49f0918.tar.bz2
gentoo-2741de3d15cf1c7422f46551a06b4841a49f0918.zip
net-dialup/accel-ppp: improve stop sequence in initscript
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-dialup/accel-ppp')
-rw-r--r--net-dialup/accel-ppp/files/accel-ppp.initd10
1 files changed, 8 insertions, 2 deletions
diff --git a/net-dialup/accel-ppp/files/accel-ppp.initd b/net-dialup/accel-ppp/files/accel-ppp.initd
index fd9cbad07caa..df98efbc8db0 100644
--- a/net-dialup/accel-ppp/files/accel-ppp.initd
+++ b/net-dialup/accel-ppp/files/accel-ppp.initd
@@ -24,8 +24,14 @@ start() {
stop() {
ebegin "Stopping accel-pppd"
- start-stop-daemon --stop --quiet --pidfile ${ACCEL_PPPD_PID}
- eend $?
+ accel-cmd shutdown
+ [ $? -ne 0 ] && kill -9 $(pidof accel-pppd)
+ PID="$(cat ${ACCEL_PPPD_PID})"
+ while [ -n "${PID}" -a -d "/proc/${PID}" ]; do
+ sleep 1
+ done
+ rm -f ${ACCEL_PPPD_PID}
+ eend 0
}
reload() {