mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
Merge branch 'devel' into 'main'
updating squid service See merge request glicid-public/guix-glicid!10
This commit is contained in:
commit
09e33dabb1
1 changed files with 7 additions and 1 deletions
|
@ -45,6 +45,8 @@
|
|||
(start #~(make-forkexec-constructor
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d 1"
|
||||
"--foreground"
|
||||
"-f" #$config-file
|
||||
)
|
||||
#:pid-file #$pid-file
|
||||
|
@ -53,6 +55,8 @@
|
|||
(stop #~(exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d 1"
|
||||
"--foreground"
|
||||
"-k" "shutdown"
|
||||
"-f" #$config-file
|
||||
)
|
||||
|
@ -66,6 +70,8 @@
|
|||
(procedure #~(exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d 1"
|
||||
"--foreground"
|
||||
"-k" "reconfigure"
|
||||
"-f" #$config-file
|
||||
)
|
||||
|
@ -82,10 +88,10 @@
|
|||
(define %squid-activation
|
||||
(with-imported-modules '((guix build utils))
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(define (touch file-name)
|
||||
(call-with-output-file file-name (const #t))
|
||||
)
|
||||
(use-modules (guix build utils))
|
||||
(mkdir-p "/var/run/squid")
|
||||
(mkdir-p "/var/log/squid")
|
||||
(mkdir-p "/var/cache/squid")
|
||||
|
|
Loading…
Add table
Reference in a new issue