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!26
This commit is contained in:
commit
d5fd633470
1 changed files with 43 additions and 54 deletions
|
@ -59,60 +59,49 @@
|
|||
#:user (passwd:uid (getpwnam "squid"))
|
||||
#:group (passwd:gid (getpwnam "squid"))
|
||||
))
|
||||
(stop #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
"-N"
|
||||
"-k" "shutdown"
|
||||
"-f" #$config-file
|
||||
)
|
||||
#:pid-file #$pid-file
|
||||
#:log-file #$log-file
|
||||
#:user (passwd:uid (getpwnam "squid"))
|
||||
#:group (passwd:gid (getpwnam "squid"))
|
||||
)))
|
||||
(actions (list
|
||||
(shepherd-action
|
||||
(name 'reload)
|
||||
(documentation "Reload the settings file from disk.")
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
"-N"
|
||||
"-k" "reconfigure"
|
||||
"-f" #$config-file
|
||||
)
|
||||
)#t))
|
||||
)
|
||||
(shepherd-action
|
||||
(name 'check-config)
|
||||
(documentation "Check the settings file from disk.")
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
"-N"
|
||||
"-k" "parse"
|
||||
"-f" #$config-file
|
||||
)
|
||||
)#t))
|
||||
)
|
||||
(shepherd-action
|
||||
(name 'kill)
|
||||
(documentation "Ultimatly kill the squid process.")
|
||||
(procedure #~(lambda _ (exec-command
|
||||
(list
|
||||
#$(file-append squid "/sbin/squid")
|
||||
"-d" #$loglevel
|
||||
"-N"
|
||||
"-k" "kill"
|
||||
"-f" #$config-file
|
||||
)
|
||||
)#t))
|
||||
)
|
||||
))
|
||||
(stop #~(make-kill-destructor))
|
||||
; TODO: find out why actions are not working
|
||||
; (actions (list
|
||||
; (shepherd-action
|
||||
; (name 'reload)
|
||||
; (documentation "Reload the settings file from disk.")
|
||||
; (procedure #~(lambda _ (exec-command
|
||||
; (list
|
||||
; #$(file-append squid "/sbin/squid")
|
||||
; "-d" #$loglevel
|
||||
; "-N"
|
||||
; "-k" "reconfigure"
|
||||
; "-f" #$config-file
|
||||
; )
|
||||
; )#t))
|
||||
; )
|
||||
; (shepherd-action
|
||||
; (name 'check-config)
|
||||
; (documentation "Check the settings file from disk.")
|
||||
; (procedure #~(lambda _ (exec-command
|
||||
; (list
|
||||
; #$(file-append squid "/sbin/squid")
|
||||
; "-d" #$loglevel
|
||||
; "-N"
|
||||
; "-k" "parse"
|
||||
; "-f" #$config-file
|
||||
; )
|
||||
; )#t))
|
||||
; )
|
||||
; (shepherd-action
|
||||
; (name 'kill)
|
||||
; (documentation "Ultimatly kill the squid process.")
|
||||
; (procedure #~(lambda _ (exec-command
|
||||
; (list
|
||||
; #$(file-append squid "/sbin/squid")
|
||||
; "-d" #$loglevel
|
||||
; "-N"
|
||||
; "-k" "kill"
|
||||
; "-f" #$config-file
|
||||
; )
|
||||
; )#t))
|
||||
; )
|
||||
; ))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue