unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#47504] [PATCH 0/2] Have fcgiwrap log to a file.
@ 2021-03-30 21:29 Christopher Baines
  2021-03-30 21:34 ` [bug#47504] [PATCH 1/2] gnu: services: web: Cleanup whitespace Christopher Baines
  2021-03-31 14:34 ` [bug#47504] [PATCH 0/2] " Efraim Flashner
  0 siblings, 2 replies; 5+ messages in thread
From: Christopher Baines @ 2021-03-30 21:29 UTC (permalink / raw)
  To: 47504

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]


Christopher Baines (2):
  gnu: services: web: Cleanup whitespace.
  gnu: services: web: Have fcgiwrap log to a file.

 gnu/services/web.scm | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#47504] [PATCH 1/2] gnu: services: web: Cleanup whitespace.
  2021-03-30 21:29 [bug#47504] [PATCH 0/2] Have fcgiwrap log to a file Christopher Baines
@ 2021-03-30 21:34 ` Christopher Baines
  2021-03-30 21:34   ` [bug#47504] [PATCH 2/2] gnu: services: web: Have fcgiwrap log to a file Christopher Baines
  2021-03-31 14:34 ` [bug#47504] [PATCH 0/2] " Efraim Flashner
  1 sibling, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2021-03-30 21:34 UTC (permalink / raw)
  To: 47504

Replace tabs with spaces, and delete trailing whitespace.

* gnu/services/web.scm: Cleanup whitespace.
---
 gnu/services/web.scm | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index aa688a4328..1aad695c8b 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -840,8 +840,8 @@ of index files."
             (requirement '(networking))
             (start #~(make-forkexec-constructor
                       '(#$(file-append package "/sbin/fcgiwrap")
-			  "-s" #$socket)
-		      #:user #$user #:group #$group))
+                        "-s" #$socket)
+                      #:user #$user #:group #$group))
             (stop #~(make-kill-destructor)))))))
 
 (define fcgiwrap-activation
@@ -863,7 +863,7 @@ of index files."
                 (extensions
                  (list (service-extension shepherd-root-service-type
                                           fcgiwrap-shepherd-service)
-		       (service-extension account-service-type
+                       (service-extension account-service-type
                                           fcgiwrap-accounts)
                        (service-extension activation-service-type
                                           fcgiwrap-activation)))
@@ -1946,24 +1946,24 @@ root=/srv/gemini
             (documentation "Run the agate Gemini server.")
             (start (let ((agate (file-append package "/bin/agate")))
                      #~(make-forkexec-constructor
-			(list #$agate
-			      "--content" #$content
-			      "--cert" #$cert
-			      "--key" #$key
-			      "--addr" #$@addr
+                        (list #$agate
+                              "--content" #$content
+                              "--cert" #$cert
+                              "--key" #$key
+                              "--addr" #$@addr
                               #$@(if lang
                                      (list "--lang" lang)
                                      '())
-			      #$@(if hostname
-				     (list "--hostname" hostname)
-				     '())
-			      #$@(if silent? '("--silent") '())
-			      #$@(if serve-secret? '("--serve-secret") '())
-			      #$@(if log-ip? '("--log-ip") '()))
-			#:user #$user #:group #$group
-			#:log-file #$log-file)))
+                              #$@(if hostname
+                                     (list "--hostname" hostname)
+                                     '())
+                              #$@(if silent? '("--silent") '())
+                              #$@(if serve-secret? '("--serve-secret") '())
+                              #$@(if log-ip? '("--log-ip") '()))
+                        #:user #$user #:group #$group
+                        #:log-file #$log-file)))
             (stop #~(make-kill-destructor)))))))
-             
+
 (define agate-accounts
   (match-lambda
     (($ <agate-configuration> _ _ _ _ _
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#47504] [PATCH 2/2] gnu: services: web: Have fcgiwrap log to a file.
  2021-03-30 21:34 ` [bug#47504] [PATCH 1/2] gnu: services: web: Cleanup whitespace Christopher Baines
@ 2021-03-30 21:34   ` Christopher Baines
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2021-03-30 21:34 UTC (permalink / raw)
  To: 47504

This makes it easier to access the output.

* gnu/services/web.scm (fcgiwrap-shepherd-service): Pass #:log-file to
make-forkexec-constructor.
---
 gnu/services/web.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/services/web.scm b/gnu/services/web.scm
index 1aad695c8b..bfcdfe7421 100644
--- a/gnu/services/web.scm
+++ b/gnu/services/web.scm
@@ -841,7 +841,8 @@ of index files."
             (start #~(make-forkexec-constructor
                       '(#$(file-append package "/sbin/fcgiwrap")
                         "-s" #$socket)
-                      #:user #$user #:group #$group))
+                      #:user #$user #:group #$group
+                      #:log-file "/var/log/fcgiwrap.log"))
             (stop #~(make-kill-destructor)))))))
 
 (define fcgiwrap-activation
-- 
2.30.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#47504] [PATCH 0/2] Have fcgiwrap log to a file.
  2021-03-30 21:29 [bug#47504] [PATCH 0/2] Have fcgiwrap log to a file Christopher Baines
  2021-03-30 21:34 ` [bug#47504] [PATCH 1/2] gnu: services: web: Cleanup whitespace Christopher Baines
@ 2021-03-31 14:34 ` Efraim Flashner
  2021-04-01  8:14   ` bug#47504: " Christopher Baines
  1 sibling, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2021-03-31 14:34 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 47504

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

On Tue, Mar 30, 2021 at 10:29:57PM +0100, Christopher Baines wrote:
> 
> Christopher Baines (2):
>   gnu: services: web: Cleanup whitespace.
>   gnu: services: web: Have fcgiwrap log to a file.
> 
>  gnu/services/web.scm | 35 ++++++++++++++++++-----------------
>  1 file changed, 18 insertions(+), 17 deletions(-)

looks good to me. And a good excuse to remove a bunch of those pesky
tabs!

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47504: [PATCH 0/2] Have fcgiwrap log to a file.
  2021-03-31 14:34 ` [bug#47504] [PATCH 0/2] " Efraim Flashner
@ 2021-04-01  8:14   ` Christopher Baines
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2021-04-01  8:14 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 47504-done


Efraim Flashner <efraim@flashner.co.il> writes:

> On Tue, Mar 30, 2021 at 10:29:57PM +0100, Christopher Baines wrote:
>>
>> Christopher Baines (2):
>>   gnu: services: web: Cleanup whitespace.
>>   gnu: services: web: Have fcgiwrap log to a file.
>>
>>  gnu/services/web.scm | 35 ++++++++++++++++++-----------------
>>  1 file changed, 18 insertions(+), 17 deletions(-)
>
> looks good to me. And a good excuse to remove a bunch of those pesky
> tabs!

Thanks for taking a look :) I've pushed these patches to master as of
264f7189e8fa20f4ab3da7f5e98fdd15d5eb4231.

Chris




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-01  8:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30 21:29 [bug#47504] [PATCH 0/2] Have fcgiwrap log to a file Christopher Baines
2021-03-30 21:34 ` [bug#47504] [PATCH 1/2] gnu: services: web: Cleanup whitespace Christopher Baines
2021-03-30 21:34   ` [bug#47504] [PATCH 2/2] gnu: services: web: Have fcgiwrap log to a file Christopher Baines
2021-03-31 14:34 ` [bug#47504] [PATCH 0/2] " Efraim Flashner
2021-04-01  8:14   ` bug#47504: " Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).