Merge pull request #1645 from gummiboll/small-initsh-fix

Small fix for init.sh
pull/1661/head
Philip O'Toole 2015-02-19 18:38:41 -08:00
commit 0519e76d4d
1 changed files with 8 additions and 4 deletions

View File

@ -87,11 +87,15 @@ name=influxdb
# Daemon name, where is the actual executable
daemon=/usr/bin/$name
# pid file for the daemon
pidfile=/opt/influxdb/shared/influxdb.pid
if [ -z "$pidfile" ]; then
# pid file for the daemon
pidfile=/opt/$name/shared/influxdb.pid
fi
# Configuration file
config=/opt/$name/shared/config.toml
if [ -z "$config" ]; then
# Configuration file
config=/opt/$name/shared/config.toml
fi
# If the daemon is not there, then exit.
[ -x $daemon ] || exit 5