Skip to content

Commit

Permalink
small change in the restart logic
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Aug 13, 2001
1 parent 60062a5 commit d27c6e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions debian/interchange-ui.preinst
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions debian/interchange.init
Expand Up @@ -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
Expand Down

0 comments on commit d27c6e3

Please sign in to comment.