mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
Replace portmap with rpcbind
Portmap is not maintained anymore that's why it is replaced by rpcbind. Rpcbind provides also rpcinfo which is quite useful for debugging. Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
a1a05a444f
commit
e93a0b06fe
@@ -1,38 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Begin $rc_base/init.d/portmap
|
||||
|
||||
#$LastChangedBy: bdubbs $
|
||||
#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting RPC Portmap"
|
||||
loadproc /sbin/portmap
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping Portmap"
|
||||
killproc /sbin/portmap
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /sbin/portmap
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/portmap
|
||||
46
src/initscripts/init.d/rpcbind
Normal file
46
src/initscripts/init.d/rpcbind
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin $rc_base/init.d/rpcbind
|
||||
#
|
||||
# Description : rpcbind init script
|
||||
#
|
||||
# Authors : Jonatan Schlag jonatan.schlag@ipfire.org
|
||||
#
|
||||
# Version : 01.00
|
||||
#
|
||||
# Notes :
|
||||
#
|
||||
########################################################################
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting rpcbind"
|
||||
loadproc /sbin/rpcbind
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping rpcbind"
|
||||
killproc /sbin/rpcbind
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /sbin/rpcbind
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/rpcbind
|
||||
Reference in New Issue
Block a user