2 < if [ -e /lib/lsb/init-functions ]
4 < . /lib/lsb/init-functions
6 < . /etc/init.d/functions
10 > . /etc/rc.d/functions
12 > stat_busy "Starting xtreemfs-dir daemon"
14 < echo -n "XtreemFS Directory Service (DIR) already started"
19 < echo -n "starting XtreemFS Directory Service (DIR)..."
21 < if [ -e /proc/$PROCPID ]
23 > if [ ! -e /proc/$PROCPID ]
31 > add_daemon xtreemfs-dir
34 > stat_busy "Stopping xtreemfs-dir daemon"
36 < echo -n "stopping XtreemFS Directory Service (DIR)..."
37 < killproc -p $PID_DS java
42 > rm_daemon xtreemfs-dir
47 < PROCPID=`cat $PID_DS`
48 < if [ ! -e /proc/$PROCPID ]
50 < echo "XtreemFS Directory Service (DIR) has crashed"
53 < echo "XtreemFS Directory Service (DIR) is running"
57 < echo "XtreemFS Directory Service (DIR) is not running"
61 > stat_busy "Checking xtreemfs-dir status"
62 > ck_status xtreemfs-dir