Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 6472ea92c9e26b7763ee421671ac8ad4 > files > 1

roundup-1.3.3-6mdv2009.0.src.rpm

#!/bin/sh
#
# Startup script for the roundup standalone server
#
# chkconfig: 345 86 16
# description: Roundup is a simple-to-use and -install \
#              issue-tracking system with command-line, \
#              web and e-mail interfaces.
# processname: roundup-server


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

DAEMON_NAME=roundup-server
CONF_FILE=/etc/roundup-server.conf

case "$1" in
  start)
        gprintf "Starting $DAEMON_NAME: "
        daemon $DAEMON_NAME -C $CONF_FILE
        echo
        touch /var/lock/subsys/$DAEMON_NAME
        ;;
  stop)
        gprintf "Shutting down $DAEMON_NAME: "
        killproc $DAEMON_NAME
        echo
        rm -f /var/lock/subsys/$DAEMON_NAME
        ;;
  status)
        status $DAEMON_NAME
        ;;
  reload|restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit 0