]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
source dracut-lib for warn()
authorBrendan Germain <brendan.germain@nasdaqomx.com>
Wed, 25 May 2016 12:29:55 +0000 (08:29 -0400)
committerBrendan Germain <brendan.germain@nasdaqomx.com>
Tue, 11 Oct 2016 12:43:20 +0000 (08:43 -0400)
modules.d/98syslog/rsyslogd-stop.sh

index 010d56a55f4159d72eb3240655cca7c85980f047..52c8edf6a95d0a23d05fa413ebacc04258c86774 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
 # Kills rsyslogd
 
 if [ -f /var/run/syslogd.pid ]; then
@@ -8,4 +10,4 @@ if [ -f /var/run/syslogd.pid ]; then
     kill -0 $pid && kill -9 $pid
 else
     warn "rsyslogd-stop: Could not find a pid for rsyslogd. Won't kill it."
-fi
\ No newline at end of file
+fi