Author: ken
Date: 2011-11-24 14:30:02 -0700 (Thu, 24 Nov 2011)
New Revision: 9008
Added:
trunk/bootscripts/blfs/init.d/rpcbind
Modified:
trunk/bootscripts/Makefile
Log:
Add a bootscript for rpcbind
Modified: trunk/bootscripts/Makefile
===================================================================
--- trunk/bootscripts/Makefile 2011-11-24 10:35:46 UTC (rev 9007)
+++ trunk/bootscripts/Makefile 2011-11-24 21:30:02 UTC (rev 9008)
@@ -347,6 +347,16 @@
ln -sf ../init.d/random ${EXTDIR}/rc.d/rc5.d/S25random
ln -sf ../init.d/random ${EXTDIR}/rc.d/rc6.d/K45random
+install-rpcbind: create-dirs
+ install -m ${MODE} blfs/init.d/rpcbind ${EXTDIR}/rc.d/init.d/
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc0.d/K49rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc1.d/K49rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc2.d/K49rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc3.d/S22rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc4.d/S22rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc5.d/S22rpcbind
+ ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc6.d/K49rpcbind
+
install-rsyncd: create-dirs
install -m ${MODE} blfs/init.d/rsyncd ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc0.d/K30rsyncd
Added: trunk/bootscripts/blfs/init.d/rpcbind
===================================================================
--- trunk/bootscripts/blfs/init.d/rpcbind (rev 0)
+++ trunk/bootscripts/blfs/init.d/rpcbind 2011-11-24 21:30:02 UTC (rev
9008)
@@ -0,0 +1,67 @@
+#!/bin/sh
+########################################################################
+# Begin rpcbind
+#
+# Description : Start rpcbind daemon
+#
+# Author : Ken Moffat - [email protected], based on portmap
+# script by Bruce Dubbs
+#
+# Version : LFS 7.0
+#
+########################################################################
+
+### BEGIN INIT INFO
+# Provides: rpcbind
+# Required-Start: network
+# Should-Start:
+# Required-Stop: sendsignals
+# Should-Stop:
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts the rpcbind daemon.
+# Description: Starts the rpcbind daemon to convert RPC program numbers
+# into DARPA protocol port numbers. It must be running in
+# order to make RPC# calls. Replaces portmap, which does
+# not work with libtirpc.
+# X-LFS-Provided-By: LFS
+### END INIT INFO
+
+. /lib/lsb/init-functions
+# Begin $rc_base/init.d/rpcbind
+
+#$LastChangedBy$
+#$Date$
+
+case "$1" in
+ start)
+ log_info_msg "Starting rpcbind"
+ start_daemon /sbin/rpcbind
+ evaluate_retval
+ ;;
+
+ stop)
+ log_info_msg "Stopping Prpcbind"
+ killproc /sbin/rpcbind
+ evaluate_retval
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ status)
+ statusproc /sbin/rpcbind
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
+
+esac
+
+# End /etc/init.d/rpcbind
+
Property changes on: trunk/bootscripts/blfs/init.d/rpcbind
___________________________________________________________________
Added: svn:keywords
+ LastChangedBy Date
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page