aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/rpc.idmapd.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-06-12 16:07:45 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-06-12 16:01:26 +0200
commitcf657bf09d01bc67e66fb39ce8ebec1ca93cbec1 (patch)
tree350a8824873c726734372a1c5066d1c04b320a7d /main/nfs-utils/rpc.idmapd.initd
parent28850b3a43930dcaba7ce82fa55bb53853cf412d (diff)
downloadaports-cf657bf09d01bc67e66fb39ce8ebec1ca93cbec1.tar.bz2
aports-cf657bf09d01bc67e66fb39ce8ebec1ca93cbec1.tar.xz
main/nfs-utils: rewrite some init scripts to be more declarative
Diffstat (limited to 'main/nfs-utils/rpc.idmapd.initd')
-rw-r--r--main/nfs-utils/rpc.idmapd.initd17
1 files changed, 2 insertions, 15 deletions
diff --git a/main/nfs-utils/rpc.idmapd.initd b/main/nfs-utils/rpc.idmapd.initd
index 61cfd4de2e..9d53118022 100644
--- a/main/nfs-utils/rpc.idmapd.initd
+++ b/main/nfs-utils/rpc.idmapd.initd
@@ -1,25 +1,12 @@
#!/sbin/openrc-run
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
-rpc_bin=/usr/sbin/rpc.idmapd
+command="/usr/sbin/rpc.idmapd"
+command_args="$OPTS_RPC_IDMAPD"
depend() {
use ypbind net
need portmap rpc.pipefs
after quota
}
-
-start() {
- ebegin "Starting idmapd"
- ${rpc_bin} ${OPTS_RPC_IDMAPD}
- eend $? "make sure DNOTIFY support is enabled ..."
-}
-
-stop() {
- ebegin "Stopping idmapd"
- start-stop-daemon --stop --exec ${rpc_bin}
- eend $?
-}