summarylogtreecommitdiffstats
path: root/initscript_openrc
diff options
context:
space:
mode:
Diffstat (limited to 'initscript_openrc')
-rw-r--r--initscript_openrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/initscript_openrc b/initscript_openrc
index 1c5eaeb6dc2e..c1ee48ec9960 100644
--- a/initscript_openrc
+++ b/initscript_openrc
@@ -37,7 +37,12 @@ stop() {
kill -9 "${_pid}" &> /dev/null
done
}
- eend "$?"
+ _running="$(pidof "${_DAEMON}" | tr ' ' '\n' | wc -l)"
+ if [ ${_running} -gt 0 ]; then
+ eerror "Failed to stop or kill all ${_DAEMON} processes."
+ eerror "Remaining processes: ${_running}."
+ fi
+ eend "${_running}"
}
reload() {