#! /bin/sh
#
# Startup script for the Interaction Server
#
# Copyright (C) 2005 Nokia.  All rights reserved.
#
# @contact Makoto Sugano <makoto.sugano@nokia.com>

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ias
NAME=ias
DESC="Interaction Server"
INITFILE=/etc/init.d/$NAME

# abort if no executable exists
test -x $DAEMON || exit 0

set -e

case "$1" in
start)
	echo -n "Starting $DESC: "
	dsmetool -f "$DAEMON"
	echo "$NAME"
	;;

stop)
	echo -n "Stopping $DESC: "
	dsmetool -k "$DAEMON"
	echo "$NAME"
	;;

restart|force-reload)
	"$0" stop
	"$0" start
	;;

*)
	N=/etc/init.d/$NAME
	printf "Usage: $N {start|stop|restart|force-reload}\n" >&2
	exit 1
	;;
esac

exit 0
