3 # pazpar2 Startup script for Pazpar2
6 # description: Pazpar2 Metasearcher
8 # config: /etc/pazpar2/server.xml
9 # config: /etc/sysconfig/pazpar2
10 # pidfile: /var/run/pazpar2.pid
12 # Source function library.
13 OPTIONS="-l /var/log/pazpar2.log -f /etc/pazpar2/server.xml"
14 . /etc/rc.d/init.d/functions
16 if [ -f /etc/sysconfig/pazpar2 ]; then
17 . /etc/sysconfig/pazpar2
20 # Path to the apachectl script, server binary, and short-form for messages.
21 DAEMON=${DAEMON-/usr/sbin/pazpar2}
23 pidfile=${PIDFILE-/var/run/pazpar2.pid}
24 lockfile=${LOCKFILE-/var/lock/subsys/pazpar2}
28 echo -n $"Starting $prog: "
29 daemon --pidfile=${pidfile} $DAEMON $OPTIONS -D -p ${pidfile}
32 [ $RETVAL = 0 ] && touch ${lockfile}
37 echo -n $"Stopping $prog: "
38 killproc -p ${pidfile} -d 10 $DAEMON
41 [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
48 # See how we were called.
57 status -p ${pidfile} $DAEMON
65 if [ -f ${pidfile} ] ; then
78 echo $"Usage: $prog {start|stop|restart|help|configtest}"