Permalink
Browse files

don't try to start/stop Interchange when /etc/interchange/init.cfg is…

… missing
  • Loading branch information...
1 parent 53429f4 commit 43682b7d851bd7c816045fcf7da800f61fa8e4f3 @racke racke committed Feb 10, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 debian/interchange.init
View
@@ -43,6 +43,12 @@ test -f $DAEMON || exit 0
# --unix --inetmode Unix and Internet mode
MODE="--unix"
USER=interchange
+
+if [ ! -f /etc/interchange/init.cfg ]; then
+ echo "ERROR: /etc/interchange/init.cfg is missing."
+ exit 1
+fi
+
. /etc/interchange/init.cfg
if [ "$GPGHOME" ]; then

0 comments on commit 43682b7

Please sign in to comment.