Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 16b673f4ac7b938918e2a0a01b23543d > files > 3

glasnost-0.6.1-5mdv2007.0.src.rpm

#!/bin/sh
#
# glasnost      Glasnost collaborative content management, e-vote and groupware.
#               This script starts the Glasnost server.
#
# chkconfig: 345 86 14
#
# description: Collaborative content management, e-vote and groupware
# processname: perl
# pidfile: /var/run/glasnost/miniserv.pid

. /etc/rc.d/init.d/functions

case "$1" in
  start)
	action "Starting Glasnost" /usr/sbin/glasnost start
	[ $? -eq 0 ] && touch /var/lock/subsys/glasnost
	;;
  stop)
	action "Stopping Glasnost" /usr/sbin/glasnost stop
	[ $? -eq 0 ] && rm -f /var/lock/subsys/glasnost
	;;
  status)
	if [ -f /var/lock/subsys/glasnost ]
	then echo "Glasnost is running..."
	     exit 0
	else echo "Glasnost is stopped"
	     exit 3
	fi
	;;
  restart)
  	$0 stop
	$0 start
	;;
  reload)
  	$0 stop
	$0 start
	;;
  condrestart)
       if [ -f /var/lock/subsys/glasnost ]; then
	    $0 stop
	    $0 start
	fi
	;;
*)
	echo "Usage: $0 { start | stop | status | restart | condrestart }"
	exit 1
	;;
esac
exit 0