
#! /bin/sh

if isi services isi_hdfs_d | grep enabled; then
    echo "disabling hdfs"
    isi services isi_hdfs_d disable
    touch /tmp/pkg_isi_hdfs_d
    echo "sleeping 10 seconds for services to settle"
    sleep 10
    if ps axw|grep isi_hdfs_d|grep -v grep; then
        echo "hdfs still running, killing"
        killall -9 isi_hdfs_d
    fi
fi

exit 0
