[Lunar-commits] CVS: moonbase/net/portmap/init.d portmap,1.2,1.3
Auke Kok
sofar at lunar-linux.org
Fri May 7 10:20:40 GMT 2004
Update of /var/cvs/lunar/moonbase/net/portmap/init.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv31712
Modified Files:
portmap
Log Message:
This is better.
Index: portmap
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/portmap/init.d/portmap,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- portmap 14 Oct 2002 12:38:41 -0000 1.2
+++ portmap 7 May 2004 10:20:38 -0000 1.3
@@ -2,32 +2,10 @@
#
# portmap
#
-# chkconfig: 345 11 88
+# chkconfig: 345 11 89
# description: the portmapper is the RPC port broker
+# processname: /sbin/portmap
#
-ID=`pgrep -u daemon portmap`
-EX=`which portmap`
-
-case $1 in
- start|restart) echo "$1ing portmap."
- if [ -n "$ID" ]; then
- kill -9 $ID
- sleep 2
- exec $EX
- exit 0
- fi
- exec $EX
- exit 0
- ;;
-
- stop) echo "$1ping portmap."
- if [ -n "$ID" ]; then
- kill -9 $ID
- exit 0
- fi
- ;;
+. /lib/lsb/init-functions
- *) echo "Usage: $0 {start|stop|restart}"
- ;;
-esac
More information about the Lunar-commits
mailing list