summaryrefslogtreecommitdiff
path: root/extra/ypbind-mt/ypbind
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-05 16:43:59 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-05 16:43:59 +0200
commiteea781ff51db0dcc8e7263625d9b206d8b498b14 (patch)
tree1c36f59ff34ac845dad77ddb50cde427c5dc1bd4 /extra/ypbind-mt/ypbind
parent64552a84f9eb436e191d738ef4ebc552a768048d (diff)
parent7a600dcabb6923ee79d36a4eaab2fc6867bdb807 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: core/dbus/PKGBUILD extra/opus/PKGBUILD extra/ypbind-mt/PKGBUILD
Diffstat (limited to 'extra/ypbind-mt/ypbind')
-rwxr-xr-xextra/ypbind-mt/ypbind35
1 files changed, 0 insertions, 35 deletions
diff --git a/extra/ypbind-mt/ypbind b/extra/ypbind-mt/ypbind
deleted file mode 100755
index 6a5ef11e3..000000000
--- a/extra/ypbind-mt/ypbind
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-. /etc/conf.d/ypbind
-. /etc/conf.d/nisdomainname
-
-name=ypbind
-PID=$(pidof -o %PPID /usr/sbin/ypbind)
-
-case "$1" in
-start)
- stat_busy "Starting $name daemon"
- [[ -n $NISDOMAINNAME ]] && /usr/bin/domainname "$NISDOMAINNAME" &>/dev/null
- [[ -z "$PID" ]] && /usr/sbin/ypbind $YPBIND_ARGS &>/dev/null \
- && { add_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-stop)
- stat_busy "Stopping $name daemon"
- [[ -n "$PID" ]] && kill $PID &>/dev/null \
- && { rm_daemon $name; stat_done; } \
- || { stat_fail; exit 1; }
- ;;
-restart)
- $0 stop
- sleep 1
- $0 start
- ;;
-*)
- echo "usage: $0 {start|stop|restart}"
- exit 1
- ;;
-esac