Permalink
Browse files

small change in the restart logic

  • Loading branch information...
1 parent 60062a5 commit d27c6e348b81ad98c30e851ee49242fe2c9e0189 @racke racke committed Aug 13, 2001
Showing with 6 additions and 3 deletions.
  1. +1 −3 debian/interchange-ui.preinst
  2. +5 −0 debian/interchange.init
@@ -20,9 +20,7 @@
# If only interchange-ui is installed, we need to stop
# the server first
-if [ ! -f /var/run/interchange-install ]; then
- /etc/init.d/interchange stop
-fi
+/etc/init.d/interchange stop
# We use the file /var/run/interchange-install to record
# the installed interchange packages, so only one server
View
@@ -32,6 +32,11 @@ case "$1" in
-f /etc/interchange/interchange.cfg
;;
stop)
+ # skip stop during unfinished installation
+ if [ -f /var/run/interchange-install ]; then
+ exit 0
+ fi
+
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --pidfile /var/run/interchange/$NAME.pid

0 comments on commit d27c6e3

Please sign in to comment.