mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
services: web: Fix long lines.
* gnu/services/web.scm: Remove a trailing space and wrap long line. No functional change.
This commit is contained in:
parent
d48c2c7df3
commit
22bfc42fab
1 changed files with 36 additions and 30 deletions
|
@ -1393,7 +1393,7 @@ (define-record-type* <anonip-configuration>
|
|||
(replacement anonip-configuration-replacement ;string
|
||||
(default #f))
|
||||
(ipv4mask anonip-configuration-ipv4mask ;number
|
||||
(default #f))
|
||||
(default #f))
|
||||
(ipv6mask anonip-configuration-ipv6mask ;number
|
||||
(default #f))
|
||||
(increment anonip-configuration-increment ;number
|
||||
|
@ -1425,35 +1425,41 @@ (define (anonip-shepherd-service config)
|
|||
(format #false "~a=~a"
|
||||
option value))))
|
||||
(list)))))
|
||||
(list (shepherd-service
|
||||
(provision (list (symbol-append 'anonip- (string->symbol output))))
|
||||
(requirement '(user-processes))
|
||||
(documentation "Anonimyze the given log file location with anonip.")
|
||||
(start #~(lambda _
|
||||
(unless (file-exists? #$input)
|
||||
(mknod #$input 'fifo #o600 0))
|
||||
(let ((pid (fork+exec-command
|
||||
(append
|
||||
(list #$(file-append (anonip-configuration-anonip config)
|
||||
"/bin/anonip")
|
||||
(string-append "--input=" #$input)
|
||||
(string-append "--output=" #$output))
|
||||
(if #$(anonip-configuration-skip-private? config)
|
||||
'("--skip-private") (list))
|
||||
'#$(optional anonip-configuration-column "--column")
|
||||
'#$(optional anonip-configuration-ipv4mask "--ipv4mask")
|
||||
'#$(optional anonip-configuration-ipv6mask "--ipv6mask")
|
||||
'#$(optional anonip-configuration-increment "--increment")
|
||||
'#$(optional anonip-configuration-replacement "--replacement")
|
||||
'#$(optional anonip-configuration-delimiter "--delimiter")
|
||||
'#$(optional anonip-configuration-regex "--regex"))
|
||||
;; Run in a UTF-8 locale
|
||||
#:environment-variables
|
||||
(list (string-append "GUIX_LOCPATH=" #$glibc-utf8-locales
|
||||
"/lib/locale")
|
||||
"LC_ALL=en_US.utf8"))))
|
||||
pid)))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
(list
|
||||
(shepherd-service
|
||||
(provision
|
||||
(list (symbol-append 'anonip- (string->symbol output))))
|
||||
(requirement '(user-processes))
|
||||
(documentation
|
||||
"Anonimyze the given log file location with anonip.")
|
||||
(start
|
||||
#~(lambda _
|
||||
(unless (file-exists? #$input)
|
||||
(mknod #$input 'fifo #o600 0))
|
||||
(let ((pid
|
||||
(fork+exec-command
|
||||
(append
|
||||
(list #$(file-append (anonip-configuration-anonip config)
|
||||
"/bin/anonip")
|
||||
(string-append "--input=" #$input)
|
||||
(string-append "--output=" #$output))
|
||||
(if #$(anonip-configuration-skip-private? config)
|
||||
'("--skip-private") (list))
|
||||
'#$(optional anonip-configuration-column "--column")
|
||||
'#$(optional anonip-configuration-ipv4mask "--ipv4mask")
|
||||
'#$(optional anonip-configuration-ipv6mask "--ipv6mask")
|
||||
'#$(optional anonip-configuration-increment "--increment")
|
||||
'#$(optional anonip-configuration-replacement
|
||||
"--replacement")
|
||||
'#$(optional anonip-configuration-delimiter "--delimiter")
|
||||
'#$(optional anonip-configuration-regex "--regex"))
|
||||
;; Run in a UTF-8 locale
|
||||
#:environment-variables
|
||||
(list (string-append "GUIX_LOCPATH=" #$glibc-utf8-locales
|
||||
"/lib/locale")
|
||||
"LC_ALL=en_US.utf8"))))
|
||||
pid)))
|
||||
(stop #~(make-kill-destructor))))))
|
||||
|
||||
(define anonip-service-type
|
||||
(service-type
|
||||
|
|
Loading…
Reference in a new issue