-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL service #121
Comments
Thank you for taking this up!
By default, the contents of the [environment] section are indeed passed though execl-envfile. If you do not have an exclamation mark, they should be added to the environment. As far as the default configuration file, I would love to use the existing ones via execl-envfile but it is not straightforward. It is certainly safer than sourcing them. In the earlyoom service @linuxergr used the [environment] section instead of the default configuration file. This way we get everything related to the conf file management (versioning, scripting with
That is not possible at the moment, I think @Obarun is experimenting with adding it.
Yes you can go ahead and add calls to the 66-tools and s6 utilities (eg replacing chpst) in the shellscript when you think that makes sense. You do not need to use execline in order to use these utilities. I recently replaced mkdir in the repo with |
I have never done that with execline... It should be though, I will make some tests. |
I stand partially corrected :) |
i've been playing around with creating a 66 service for PostgreSQL, and at the moment, i can't seem to do any better than merely using the existing runit
run
script:i'm assuming that the service should use
/etc/default/postgresql
, for compatibility with existing installations. But in terms of then creating an execline script, i haven't been able to work out:how to derive
PGDATA
fromPGROOT
if the latter is 'sourced' viaexecl-envfile
. Is this possible?whether a variable in an
[environment]
section can refer to a variable defined previously. E.g. can one do:? The frontend docs don't say anything either way, and a search of this repo doesn't seem to show any such usage ....
Finally, assuming all this isn't ported to execline, do we make changes such as converting:
to
?
The text was updated successfully, but these errors were encountered: