Created attachment 204800 [details]
Patch to add Requires.
Add a REQUIRES for postgresql if PostgreSQL is selected. This prevents quasselcore from starting before PostgreSQL is ready.
I guess technically PostgreSQL could be on a different server. But I'd like a way to have this show up somehow in the start script if the user has PostgreSQL on the same server and using PostgreSQL for the quassel database.
Also, the BUGS section of rcorder(8) is "interesting" in this context. I'm not sure what the right answer is here. koobs@ and I have been discussing this on IRC, but didn't come to a conclusion.
Thanks for submitting this.
The other issue I can think of with this, is if a user has enabled the PGSQL option at compile time, but is not using it (is using sqlite). Will this prevent the quasselcore server from starting because postgresql is not started?
I note that the PGSQL option only adds a dependency on postgresql95-client (the server is not installed as a dependency).
What options do we have available to us to configure rcorder to "if postgresql server is installed then start quasselcore after postgresql, or otherwise just start quasselcore regardless"?