mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 14:18:38 +02:00
Merge branch 'devel' into 'main'
updating squid service See merge request glicid-public/guix-glicid!22
This commit is contained in:
commit
ce0c835c2a
1 changed files with 8 additions and 8 deletions
|
@ -58,7 +58,7 @@
|
|||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
))
|
||||
(stop #~(exec-command
|
||||
(stop #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
|
@ -69,12 +69,12 @@
|
|||
#:pid-file #$pid-file
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
))
|
||||
)))
|
||||
(actions (list
|
||||
(shepherd-action
|
||||
(name 'reload)
|
||||
(documentation "Reload the settings file from disk.")
|
||||
(procedure #~(exec-command
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
|
@ -85,12 +85,12 @@
|
|||
#:pid-file #$pid-file
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
))
|
||||
)))
|
||||
)
|
||||
(shepherd-action
|
||||
(name 'check-config)
|
||||
(documentation "Check the settings file from disk.")
|
||||
(procedure #~(exec-command
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
|
@ -101,12 +101,12 @@
|
|||
#:pid-file #$pid-file
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
))
|
||||
)))
|
||||
)
|
||||
(shepherd-action
|
||||
(name 'kill)
|
||||
(documentation "Ultimatly kill the squid process.")
|
||||
(procedure #~(exec-command
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
|
@ -117,7 +117,7 @@
|
|||
#:pid-file #$pid-file
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
))
|
||||
)))
|
||||
)
|
||||
))
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue