#!/bin/bash # # Startup script for prolingarund # # chkconfig: 2345 80 20 # description: Starts the ProLinga-Run Service. # Source function library. . /etc/init.d/functions test -x @bindir@/prolingarund || exit 0 RETVAL=0 # # See how we were called. # prog="prolingarund" start() { # Check if prolingarund is already running if [ ! -f /var/lock/subsys/prolingarund ]; then echo -n $"Starting $prog: " daemon @bindir@/prolingarund RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/prolingarund echo fi return $RETVAL } stop() { echo -n $"Stopping $prog: " killproc @bindir@/prolingarund RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/prolingarund echo return $RETVAL } restart() { stop start } reload() { restart } status_at() { status @bindir@/prolingarund } case "$1" in start) start ;; stop) stop ;; reload|restart) restart ;; condrestart) if [ -f /var/lock/subsys/prolingarund ]; then restart fi ;; status) status prolingarund ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $? exit $RETVAL