Author: baggins                      Date: Fri Jan  6 17:52:16 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added chroot and ip options

---- Files affected:
SOURCES:
   portmap.init (1.16 -> 1.17) , portmap.sysconfig (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/portmap.init
diff -u SOURCES/portmap.init:1.16 SOURCES/portmap.init:1.17
--- SOURCES/portmap.init:1.16   Thu Dec  8 02:02:49 2005
+++ SOURCES/portmap.init        Fri Jan  6 18:52:11 2006
@@ -36,8 +36,11 @@
   start)
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/portmap ]; then
+               PORTMAP_OPTIONS=
+               [ -z "${PORTMAP_CHROOT}" ] || PORTMAP_OPTIONS="-t 
${PORTMAP_CHROOT}"
+               [ -z "${PORTMAP_IP}" ] || PORTMAP_OPTIONS="${PORTMAP_OPTIONS} 
-i ${PORTMAP_IP}"
                msg_starting portmap
-               daemon portmap
+               daemon portmap ${PORTMAP_OPTIONS}
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/portmap
        else
@@ -58,7 +61,9 @@
        exit $?
        ;;
   dump)
-       pmap_dump >/var/lib/misc/portmap.dump
+       PORTMAP_OPTIONS=
+       [ -z "${PORTMAP_IP}" ] || PORTMAP_OPTIONS="-i ${PORTMAP_IP}"
+       pmap_dump ${PORTMAP_OPTIONS} >/var/lib/misc/portmap.dump
        exit $?
        ;;
   restore)

================================================================
Index: SOURCES/portmap.sysconfig
diff -u SOURCES/portmap.sysconfig:1.1 SOURCES/portmap.sysconfig:1.2
--- SOURCES/portmap.sysconfig:1.1       Tue Jun  8 17:02:34 1999
+++ SOURCES/portmap.sysconfig   Fri Jan  6 18:52:11 2006
@@ -1,4 +1,8 @@
 # Set nice level for portmap
-
-# Define services nice level
 SERVICE_RUN_NICE_LEVEL="+1"
+
+# chroot into this directory
+# PORTMAP_CHROOT=/usr/share/empty
+
+# set IP address to listen on (only one)
+# PORTMAP_IP="10.0.0.1"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/portmap.init?r1=1.16&r2=1.17&f=u
    http://cvs.pld-linux.org/SOURCES/portmap.sysconfig?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to