summaryrefslogtreecommitdiffstats
path: root/abs/extra/nbd/nbd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-17 00:05:58 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:05 (GMT)
commit34aea02a41d9c352742211190131dbd72bb1d04c (patch)
tree1fb6feee71190ee9f3686e0aced915f5fa6ee246 /abs/extra/nbd/nbd
parent088c5b470b114a46fb991d99c2242f04fec0307e (diff)
downloadlinhes_pkgbuild-34aea02a41d9c352742211190131dbd72bb1d04c.zip
linhes_pkgbuild-34aea02a41d9c352742211190131dbd72bb1d04c.tar.gz
linhes_pkgbuild-34aea02a41d9c352742211190131dbd72bb1d04c.tar.bz2
nbd: 3.6
update binary path to /usr/bin refs #961
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