#!/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