[interchange-cvs] interchange - racke modified debian/interchange-ui.postrm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Fri May 19 15:32:26 EDT 2006


User:      racke
Date:      2006-05-19 19:32:26 GMT
Modified:  debian   interchange-ui.postrm
Log:
merged changes 1.3 vs 1.3.8.1
+++ 1.3.8.1 +++
use invoke-rc.d to run init scripts if command is available

Revision  Changes    Path
1.4       +11 -3     interchange/debian/interchange-ui.postrm


rev 1.4, prev_rev 1.3
Index: interchange-ui.postrm
===================================================================
RCS file: /var/cvs/interchange/debian/interchange-ui.postrm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- interchange-ui.postrm	14 Jan 2003 15:21:40 -0000	1.3
+++ interchange-ui.postrm	19 May 2006 19:32:26 -0000	1.4
@@ -1,6 +1,6 @@
 #! /bin/sh -e
 #
-# Copyright 2001 by Stefan Hornburg (Racke) <racke at linuxia.de>
+# Copyright 2001,2006 by Stefan Hornburg (Racke) <racke at linuxia.de>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,7 +25,11 @@
 	# the server first
 
 	if [ -x /etc/init.d/interchange ]; then
-		/etc/init.d/interchange stop
+		if which invoke-rc.d >/dev/null 2>&1; then
+			invoke-rc.d interchange stop
+		else
+			/etc/init.d/interchange stop
+		fi
 	fi
 
 	if [ -x /usr/sbin/interchangeconfig ]; then
@@ -58,7 +62,11 @@
 	fi
 
 	if [ -x /etc/init.d/interchange ]; then
-		/etc/init.d/interchange start
+		if which invoke-rc.d >/dev/null 2>&1; then
+			invoke-rc.d interchange start
+		else
+			/etc/init.d/interchange start
+		fi
 	fi
 
 	# Don't wait on Interchange to close file handles








More information about the interchange-cvs mailing list