summaryrefslogtreecommitdiffstats
path: root/abs/extra/nbd/nbd
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/nbd/nbd')
-rw-r--r--abs/extra/nbd/nbd39
1 files changed, 0 insertions, 39 deletions
diff --git a/abs/extra/nbd/nbd b/abs/extra/nbd/nbd
deleted file mode 100644
index 76d16c7..0000000
--- a/abs/extra/nbd/nbd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PIDFILE="/var/run/nbd-server.pid"
-PID=`cat $PIDFILE 2>/dev/null`
-case "$1" in
- start)
- stat_busy "Starting Network Block Device Server"
- if [ "$PID" = "" ]; then
- /usr/bin/nbd-server
- fi
- if [ "$PID" != "" -o $? -gt 0 ]; then
- stat_fail
- else
- add_daemon nbd
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Network Block Device Server"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- rm -f $PIDFILE
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon nbd
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac