#!/bin/sh
# /etc/rc.d/init.d/exem-manager-agent
case "$1" in
    start)
        echo "Starting exem-manager-agent ..."
        __INST__EXEM_HOME__/manager/script/binary_start.sh
        ;;
    stop)
        echo "Shutting down exem-manager-agent ..."
        __INST__EXEM_HOME__/manager/script/binary_stop.sh
        ;;
    restart)
        echo "Restarting exem-manager-agent ..."
        __INST__EXEM_HOME__/manager/script/binary_stop.sh
        __INST__EXEM_HOME__/manager/script/binary_start.sh
        ;;
    *)
        echo "Usage: service exem-manager-agent { start | stop | restart }"
        exit 1
        ;;
esac
exit 0