diff options
author | Per Andersson <avtobiff@gmail.com> | 2010-04-17 18:40:32 +0200 |
---|---|---|
committer | Per Andersson <avtobiff@gmail.com> | 2010-04-17 18:41:44 +0200 |
commit | 300ef2b59f971ec113145f61479fd83fcc21399e (patch) | |
tree | 3b5964929a62dc7b31d292c71642e76d9e0bd199 | |
parent | 3e5f9ce411d848f8eeeda36ded7b4214a394b220 (diff) | |
download | etherpad-300ef2b59f971ec113145f61479fd83fcc21399e.tar.gz etherpad-300ef2b59f971ec113145f61479fd83fcc21399e.tar.xz etherpad-300ef2b59f971ec113145f61479fd83fcc21399e.zip |
init script checks that etherpad jar exists.
-rw-r--r-- | etherpad/bin/etherpad.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etherpad/bin/etherpad.init b/etherpad/bin/etherpad.init index 3e05ea8..30d20d2 100644 --- a/etherpad/bin/etherpad.init +++ b/etherpad/bin/etherpad.init @@ -19,13 +19,14 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Collaborative real-time editor" NAME=etherpad +ETHERPAD_JAR="/usr/local/etherpad/etherpad/appjet-eth-dev.jar" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME CHUID="$ETHERPAD_USER:$ETHERPAD_GROUP" # Exit if the package is not installed -[ -x "$DAEMON" ] || exit 0 +[ -f "$ETHERPAD_JAR" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME |