dracut/modules.d/90multipath/multipathd-stop.sh

14 lines
261 B
Bash
Executable File

#!/bin/sh
if [ -e /etc/multipath.conf ]; then
pkill multipathd > /dev/null 2>&1
if pidof multipathd > /dev/null 2>&1; then
sleep 0.2
fi
if pidof multipathd > /dev/null 2>&1; then
pkill -9 multipathd > /dev/null 2>&1
fi
fi