# Start or stop Elan License Manager(s) [For System V UNIX systems]
# NOTE: for June 1996 Xaos Tools version 
# 
# -> This file may be placed in the /etc/rc2.d directory named 
#    "Selmd" and copied (or linked) to the name "Kelmd".
# -> Modify YOUR-KEYPATH-HERE after the elmd -e option.
# -> Modify YOUR-LOGFILE-HERE after the elmd -l option.
# -----------------------------------------------------------------
# @(#)Selmd	1.2 8/13/93 12:11:39 - Elan Computer Group, Inc. (c) 1993
#
# Copyright (c) 1993 Elan Computer Group, Inc.
# All Rights Reserved.
#
# This is unpublished proprietary source code of Elan Computer Group, Inc.
# The copyright notice above does not evidence any actual
# or intended publication of such source code.
#
USAGE="Usage: $0 {start | stop}"

case "$1" in
    start)
	/etc/xti_xlmd -e /usr/lib/elm -l /usr/lib/elm/xlm_elmlog -m 0.25m
	;;
    stop)
	for file in /tmp/.elmd.*
	do
		/bin/kill -15 `cat $file`
	done
	;;
    *) 
	echo "$USAGE"
	exit 1
	;;
esac

