mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: postgresql: Simplify execution of ‘initdb’.
* gnu/services/databases.scm (postgresql-activation): Replace ‘primitive-exit’ + ‘system*’ with ‘execl’. Change-Id: I491fd3093f67af59f240438d7d6123e769e4ec1e
This commit is contained in:
parent
ed03a0aa9b
commit
6b138626e4
1 changed files with 3 additions and 6 deletions
|
@ -273,12 +273,9 @@ (define postgresql-activation
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setgid (passwd:gid user))
|
(setgid (passwd:gid user))
|
||||||
(setuid (passwd:uid user))
|
(setuid (passwd:uid user))
|
||||||
(primitive-exit
|
(apply execl initdb
|
||||||
(apply system*
|
initdb "-D" #$data-directory
|
||||||
initdb
|
initdb-args))
|
||||||
"-D"
|
|
||||||
#$data-directory
|
|
||||||
initdb-args)))
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(primitive-exit 1))))
|
(primitive-exit 1))))
|
||||||
(pid (waitpid pid))))))))))
|
(pid (waitpid pid))))))))))
|
||||||
|
|
Loading…
Reference in a new issue