diff options
author | Mathieu Othacehe <othacehe@gnu.org> | 2021-02-23 11:00:18 +0100 |
---|---|---|
committer | Mathieu Othacehe <othacehe@gnu.org> | 2021-02-23 11:00:18 +0100 |
commit | 1a8cfb6d4c767d6cb19689404d7d0bca336ed0d6 (patch) | |
tree | 9e2f32e641c81450466d73b36df14ebc3f6437d4 /nix/libstore/sqlite.cc | |
parent | bebcf97600b2fa65482ae8ee870800dafa34d3f8 (diff) | |
download | guix-1a8cfb6d4c767d6cb19689404d7d0bca336ed0d6.tar.gz guix-1a8cfb6d4c767d6cb19689404d7d0bca336ed0d6.zip |
services: postgresql-roles: Fix race condition.
Make sure that the postgresql-roles script is completed before declaring the
postgresql-roles service as started.
* gnu/services/databases.scm (postgresql-create-roles): Return the command
line instead of a program-file.
(postgresql-role-shepherd-service): Use fork+exec-command to start the role
creation script and wait for its completion before returning.
Diffstat (limited to 'nix/libstore/sqlite.cc')
0 files changed, 0 insertions, 0 deletions