#!/bin/sh
#
# update_wms	Update Window Manager Sessions
#
# chkconfig: 345 36 64
# description:	Updates Window Manager Sessions.

WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/update_wms
RETVAL=0

# See how we were called.
case "$1" in
	start|reload|restart|condreload|condrestart)
		action "Updating Window Manager Sessions:" /usr/sbin/update_wms
		RETVAL=$?
		# Mark as started regardless of exit status.
		touch "$LOCKFILE"
		;;
	stop|condstop)
		rm -f "$LOCKFILE"
		;;
	status)
		;;
	*)
		msg_usage "${0##*/} {start}"
		RETVAL=1
esac

exit $RETVAL
