[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: services: postgresql: Simplify execution of ‘initdb’.
From: |
guix-commits |
Subject: |
06/07: services: postgresql: Simplify execution of ‘initdb’. |
Date: |
Fri, 29 Mar 2024 20:05:58 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 6b138626e4dfed219941cc9e9466ec827493723d
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Mar 29 23:13:32 2024 +0100
services: postgresql: Simplify execution of ‘initdb’.
* gnu/services/databases.scm (postgresql-activation): Replace
‘primitive-exit’ + ‘system*’ with ‘execl’.
Change-Id: I491fd3093f67af59f240438d7d6123e769e4ec1e
---
gnu/services/databases.scm | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index cb85d18e21..fa332d7978 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -273,12 +273,9 @@ host all all ::1/128 md5"))
(lambda ()
(setgid (passwd:gid user))
(setuid (passwd:uid user))
- (primitive-exit
- (apply system*
- initdb
- "-D"
- #$data-directory
- initdb-args)))
+ (apply execl initdb
+ initdb "-D" #$data-directory
+ initdb-args))
(lambda ()
(primitive-exit 1))))
(pid (waitpid pid))))))))))
- branch master updated (9dae1488a4 -> 4b23fd7adb), guix-commits, 2024/03/29
- 03/07: doc: ‘guix time-machine’ can travel to v0.16.0., guix-commits, 2024/03/29
- 01/07: channels: Autoload several modules., guix-commits, 2024/03/29
- 04/07: doc: Cross-reference virtual build machines from ‘guix time-machine’., guix-commits, 2024/03/29
- 02/07: substitute: Retry nar download upon networking error., guix-commits, 2024/03/29
- 06/07: services: postgresql: Simplify execution of ‘initdb’.,
guix-commits <=
- 05/07: services: postgresql: Don't initdb when directory exists., guix-commits, 2024/03/29
- 07/07: gnu: gerbil: Update to 0.18.1., guix-commits, 2024/03/29