Closed fcorneli closed 3 years ago
Not all systemd users of EveBox are using Elasticsearch. I'll have to tune the waiting for elasticsearch to become available behaviour.
Not all systemd users of EveBox are using Elasticsearch.
That's why I used After
instead of Requires
. Hence if Elasticsearch runs on the machine, Evebox will be started after Elasticsearch (just in case Evebox actually uses Elasticsearch as data source). If Elasticsearch does not run on the machine, Evebox will also be started and After
is simply not used by systemd.
But indeed, ideally Evebox can survive the fact that Elasticsearch is started after it.
EveBox will now wait on startup for Elasticsearch to be ready. This was needed even outside of systemd. This is now in development builds. I plan a release build soon I think.
Running Evebox as systemd service on CentOS, with elasticsearch as database, gives me an error that elasticsearch is not available upon system reboot and hence the Evebox service fails to start. Adding to
/usr/lib/systemd/system/evebox.service
the following line under[Unit]
solves the issue:Maybe this could be included per default?