#! /bin/sh
### BEGIN INIT INFO
# Provides:          iprserverDeltaDesignSimteraIC
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: IPR Server
# Description: IPR Server. DeltaDesignSimteraIC database service
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/lsb/init-functions

case "$1" in
  start)
        DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /usr/share/DeltaDesignSimteraIC/Server/IPRServerASP  --srv true --dataDirectory /usr/share/DeltaDesignSimteraIC/Server &
        ;;
  stop)
	pkill IPRServerASP
        ;;
  restart|reload|force-reload)
	pkill IPRServerASP
	DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 /usr/share/DeltaDesignSimteraIC/Server/IPRServerASP  --srv true --dataDirectory /usr/share/DeltaDesignSimteraIC/Server &

        ;;
  *)
        # echo "Usage: $0 start|stop" >&2
        # exit 3
        ;;
esac