mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: cuirass: Split into two separate services.
* gnu/services/cuirass.scm (cuirass-shepherd-service): Return two shepherd services, one for the web interface, another for building packages.
This commit is contained in:
parent
ff33283c30
commit
159b5e1f8a
1 changed files with 22 additions and 2 deletions
|
@ -106,8 +106,6 @@ (define (cuirass-shepherd-service config)
|
||||||
#$(scheme-file "cuirass-specs.scm" specs)
|
#$(scheme-file "cuirass-specs.scm" specs)
|
||||||
"--database" #$database
|
"--database" #$database
|
||||||
"--ttl" #$(string-append (number->string ttl) "s")
|
"--ttl" #$(string-append (number->string ttl) "s")
|
||||||
"--port" #$(number->string port)
|
|
||||||
"--listen" #$host
|
|
||||||
"--interval" #$(number->string interval)
|
"--interval" #$(number->string interval)
|
||||||
#$@(if use-substitutes? '("--use-substitutes") '())
|
#$@(if use-substitutes? '("--use-substitutes") '())
|
||||||
#$@(if one-shot? '("--one-shot") '())
|
#$@(if one-shot? '("--one-shot") '())
|
||||||
|
@ -118,6 +116,28 @@ (define (cuirass-shepherd-service config)
|
||||||
(string-append "GIT_EXEC_PATH=" #$git
|
(string-append "GIT_EXEC_PATH=" #$git
|
||||||
"/libexec/git-core"))
|
"/libexec/git-core"))
|
||||||
|
|
||||||
|
#:user #$user
|
||||||
|
#:group #$group
|
||||||
|
#:log-file #$log-file))
|
||||||
|
(stop #~(make-kill-destructor)))
|
||||||
|
(shepherd-service
|
||||||
|
(documentation "Run Cuirass web interface.")
|
||||||
|
(provision '(cuirass-web))
|
||||||
|
(requirement '(guix-daemon networking))
|
||||||
|
(start #~(make-forkexec-constructor
|
||||||
|
(list (string-append #$cuirass "/bin/cuirass")
|
||||||
|
"--cache-directory" #$cache-directory
|
||||||
|
"--specifications"
|
||||||
|
#$(scheme-file "cuirass-specs.scm" specs)
|
||||||
|
"--database" #$database
|
||||||
|
"--ttl" #$(string-append (number->string ttl) "s")
|
||||||
|
"--web"
|
||||||
|
"--port" #$(number->string port)
|
||||||
|
"--listen" #$host
|
||||||
|
"--interval" #$(number->string interval)
|
||||||
|
#$@(if use-substitutes? '("--use-substitutes") '())
|
||||||
|
#$@(if fallback? '("--fallback") '()))
|
||||||
|
|
||||||
#:user #$user
|
#:user #$user
|
||||||
#:group #$group
|
#:group #$group
|
||||||
#:log-file #$log-file))
|
#:log-file #$log-file))
|
||||||
|
|
Loading…
Reference in a new issue