Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Aug 13, 2001
1 parent e807509 commit 3485ca0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/interchange.init
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# interchange.init - Interchange start-stop script
#
# Copyright (C) 2000 Stefan Hornburg <racke@linuxia.de>
# Copyright (C) 2000,2001 Stefan Hornburg (Racke) <racke@linuxia.de>

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/interchange
Expand All @@ -22,6 +22,10 @@ USER=interchange

case "$1" in
start)
# skip start during unfinished installation
if [ -f /var/run/interchange-install ]; then
exit 0
fi
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/interchange/$NAME.pid \
--chuid $USER --exec $DAEMON -- --serve $MODE \
Expand Down
3 changes: 3 additions & 0 deletions debian/interchange.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ fi
# Make configuration files owned by the interchange user
chown -R $USER.$GROUP /etc/interchange

# Check if we delay the startup
rm /var/run/interchange-install

#DEBHELPER#

# Don't wait on Interchange to close file handles
Expand Down
6 changes: 6 additions & 0 deletions debian/interchange.preinst
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ if [ "$1" = "upgrade" ] && dpkg --compare-versions $2 lt 4.8.0-1; then
rm -rf /usr/lib/interchange/etc
fi

# We use the file /var/run/interchange-install to record
# the installed interchange packages, so only one server
# restart is needed

echo interchange > /var/run/interchange-install

#DEBHELPER#

0 comments on commit 3485ca0

Please sign in to comment.