Skip to content

Commit 1afc7be

Browse files
committed
travis: fix provisioning
Upstart has some difficulties to start the server properly: influxdb process was unable to start [ FAILED ] but a `service influxdb status` prints influxdb process is running [ OK ] Since this is only a problem on the CI (and on an ancient Ubuntu Trust VM), I've decided to ignore this behaviour.
1 parent 1eaa258 commit 1afc7be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/provision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ echo "-- Download has SHA256 hash: ${sha2_sum}"
3636
echo "== Installing"
3737

3838
sudo dpkg -i "${HOME}/${package_name}"
39-
sudo /etc/init.d/influxdb start
39+
sudo service influxdb start || true
4040

4141
echo "-- waiting for daemon to start"
4242
while ! curl --head --fail --silent http://localhost:8086/ping; do
@@ -78,7 +78,7 @@ if [ ! -f /etc/influxdb/influxdb.conf ]; then
7878
fi
7979

8080
sudo sed -i 's/auth-enabled = false/auth-enabled = true/' /etc/influxdb/influxdb.conf
81-
sudo /etc/init.d/influxdb restart
81+
sudo service influxdb restart || true
8282

8383
echo "-- waiting for daemon to restart"
8484
while ! curl --head --fail --silent http://localhost:8086/ping; do

0 commit comments

Comments
 (0)