We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e78b1 commit c2ecc4dCopy full SHA for c2ecc4d
modules.d/99memstrack/memstrack-report.sh
@@ -1,15 +1,15 @@
1
-#!/bin/bash
+#!/bin/sh
2
. /lib/dracut-lib.sh
3
4
if ! [ "$DEBUG_MEM_LEVEL" -ge 4 ]; then
5
return 0
6
fi
7
8
-if type -P systemctl > /dev/null; then
+if command -v systemctl > /dev/null; then
9
systemctl stop memstrack.service
10
else
11
pkill --signal INT '[m]emstrack'
12
- while [[ $(pgrep '[m]emstrack') ]]; do
+ while pgrep -c '[m]emstrack' > /dev/null; do
13
sleep 1
14
done
15
modules.d/99memstrack/module-setup.sh
@@ -11,6 +11,7 @@ check() {
}
depends() {
+ echo systemd
16
17
0 commit comments