Bug 238307 - irc/quassel: Add REQUIRES for postgresql to start script if specified
Summary: irc/quassel: Add REQUIRES for postgresql to start script if specified
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ben Woods
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-03 10:58 UTC by Larry Rosenman
Modified: 2019-08-18 14:32 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (woodsb02)


Attachments
Patch to add Requires. (712 bytes, patch)
2019-06-03 10:58 UTC, Larry Rosenman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer 2019-06-03 10:58:17 UTC
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.
Comment 1 Larry Rosenman freebsd_committer 2019-06-03 11:33:44 UTC
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.
Comment 2 Larry Rosenman freebsd_committer 2019-06-03 11:43:27 UTC
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.
Comment 3 Ben Woods freebsd_committer 2019-08-18 14:32:26 UTC
Hi Larry,

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"?