#!/bin/bash # To be called from start-stop-daemon DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd "$DIR" && \ source "$DIR"/env.sh && \ exec "$DIR/$APP" >> ${LOG}/mandible.log 2 >> ${LOG}/mandible.err