#!/bin/sh

echo "enabling mcp"
isi_mcp;
sleep 5;

if pgrep isi_mcp > /dev/null; 
then
    echo "mcp running";
else
    echo "not running, please restart this node";
fi


if [ -f /tmp/pkg_isi_hdfs_d ] ; then
	echo "Enabling hdfs"
	isi services isi_hdfs_d enable
	rm /tmp/pkg_isi_hdfs_d
fi

if [ -f /tmp/pkg_isi_papi_d ] ; then
        echo "Enabling isi_papi_d"
        isi services -a isi_papi_d enable
        rm /tmp/pkg_isi_papi_d
fi
