updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / xtreemfs-server / xtreemfs-dir.patch
blobac6c02678091684e29b0fa59213d3834eabfba58
1 13,18c13,14
2 < if [ -e /lib/lsb/init-functions ]
3 < then
4 < . /lib/lsb/init-functions
5 < else
6 < . /etc/init.d/functions
7 < fi
8 ---
9 > . /etc/rc.conf
10 > . /etc/rc.d/functions
11 55a52
12 > stat_busy "Starting xtreemfs-dir daemon"
13 58,59c55
14 < echo -n "XtreemFS Directory Service (DIR) already started"
15 < echo
16 ---
17 > stat_fail
18 71d66
19 < echo -n "starting XtreemFS Directory Service (DIR)..."
20 77c72
21 < if [ -e /proc/$PROCPID ]
22 ---
23 > if [ ! -e /proc/$PROCPID ]
24 79,81c74
25 < echo
26 < else
27 < echo
28 ---
29 > stat_fail
30 86a80,81
31 > add_daemon xtreemfs-dir
32 > stat_done
33 90a86
34 > stat_busy "Stopping xtreemfs-dir daemon"
35 93,95c89
36 < echo -n "stopping XtreemFS Directory Service (DIR)..."
37 < killproc -p $PID_DS java
38 < echo
39 ---
40 > kill `cat $PID_DS`
41 98a93,94
42 > rm_daemon xtreemfs-dir
43 > stat_done
44 103,117c99,100
45 < if [ -f $PID_DS ]
46 < then
47 < PROCPID=`cat $PID_DS`
48 < if [ ! -e /proc/$PROCPID ]
49 < then
50 < echo "XtreemFS Directory Service (DIR) has crashed"
51 < return 1
52 < else
53 < echo "XtreemFS Directory Service (DIR) is running"
54 < return 0
55 < fi
56 < else
57 < echo "XtreemFS Directory Service (DIR) is not running"
58 < return 3
59 < fi
60 ---
61 > stat_busy "Checking xtreemfs-dir status"
62 > ck_status xtreemfs-dir