updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / refdb / refdbd.rc
blob90ceab58ae6a088d7fd8ed34a8a15649cef15592
1 #!/bin/bash
3 # source application-specific settings
5 # general config
6 . /etc/rc.conf
7 . /etc/rc.d/functions
9 case "$1" in
10 start)
11 stat_busy "Starting RefDB Bibliography server"
12 /usr/bin/refdbctl start &>/dev/null
13 if [ $? -gt 0 ]; then
14 stat_fail
15 else
16 add_daemon refdbd
17 stat_done
20 stop)
21 stat_busy "Stopping RefDB Bibliography server"
22 /usr/bin/refdbctl stop &>/dev/null
23 if [ $? -gt 0 ]; then
24 stat_fail
25 else
26 rm_daemon refdbd
27 stat_done
30 restart)
31 $0 stop
32 sleep 3
33 $0 start
35 reload)
36 if [ -f /var/run/httpd.pid ]; then
37 status "Reloading RefDB Configuration"
38 /usr/sbin/refdbctl reload
42 echo "usage: $0 {start|stop|restart|reload}"
43 esac