Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 9ed97188eebbefa7f50735c2a6223641 > files > 3

glasnost-0.6.1-2mdk.noarch.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 gprintf "Glasnost is running...\n"
	     exit 0
	else gprintf "Glasnost is stopped\n"
	     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
	;;
*)
	gprintf "Usage: %s { start | stop | status | restart | condrestart }\n" "$0"
	exit 1
	;;
esac
exit 0