diff options
-rw-r--r-- | gnu/services/web.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 289177d1ca..c2d8ebbddf 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -1891,17 +1891,19 @@ WSGIPassAuthorization On (define (patchwork-django-admin-gexp patchwork settings-module) #~(lambda (_ . command) + (peek "COMMAND" command) (let ((pid (fork+exec-command (cons #$(file-append patchwork "/bin/patchwork-admin") command) #:user "httpd" #:group "httpd" - #:environment + #:environment-variables `("DJANGO_SETTINGS_MODULE=guix.patchwork.settings" ,(string-append "PYTHONPATH=" #$settings-module) ,@(environ))))) - (waitpid pid)))) + (peek "PID" pid) + (peek "WAITPID" (waitpid pid))))) (define (patchwork-django-admin-action patchwork settings-module) (shepherd-action |