From 9c8204b64dbdd42fb3c6a3a0a356c5fa2c4f9277 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Tue, 20 May 2014 13:28:05 -0400 Subject: [PATCH] Fix #460. Don't start influxdb automatically after installing from pkg --- CHANGELOG.md | 1 + scripts/init.sh | 1 + scripts/post_install.sh | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cefdc926525..d31640d3ecb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Bugfixes - [Issue #557](https://github.com/influxdb/influxdb/issues/557). Group by time(1y) doesn't work while time(365d) works +- [Issue #460](https://github.com/influxdb/influxdb/issues/460). Don't start automatically after installing ## v0.6.5 [2014-05-19] diff --git a/scripts/init.sh b/scripts/init.sh index 5cbcd93a29b..c1ab3cdf0c5 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -126,6 +126,7 @@ case $1 in fi else log_failure_msg "$name Process is not running" + exit 1 fi ;; # reload) diff --git a/scripts/post_install.sh b/scripts/post_install.sh index 1a8ccadeab1..5fc6b2a6d42 100644 --- a/scripts/post_install.sh +++ b/scripts/post_install.sh @@ -20,4 +20,8 @@ if [ ! -L /etc/init.d/influxdb ]; then chkconfig --add influxdb fi fi -service influxdb restart + +# only restart if the service was already running +if /etc/init.d/influxdb status; then + service influxdb restart +fi