Merge branch 'devel' into 'main'

updating squid service

See merge request glicid-public/guix-glicid!33
This commit is contained in:
Jean-François GUILLAUME 2022-05-13 09:54:20 +00:00
commit cf3505af71

View file

@ -59,53 +59,6 @@
#:resource-limits '((nofile 16384 16384)) #:resource-limits '((nofile 16384 16384))
)) ))
(stop #~(make-kill-destructor)) (stop #~(make-kill-destructor))
(actions (list
(shepherd-action
(name 'reload)
(documentation "Reload the settings file from disk.")
(procedure #~(lambda _ (exec-command
(list
#$(file-append squid "/sbin/squid")
"-k" "reconfigure"
"-f" #$config-file
)
#:pid-file #$pid-file
#:log-file #$log-file
#:user (passwd:uid (getpwnam "squid"))
#:group (passwd:gid (getpwnam "squid"))
)))
)
(shepherd-action
(name 'check-config)
(documentation "Check the settings file from disk.")
(procedure #~(lambda _ (exec-command
(list
#$(file-append squid "/sbin/squid")
"-k" "parse"
"-f" #$config-file
)
#:pid-file #$pid-file
#:log-file #$log-file
#:user (passwd:uid (getpwnam "squid"))
#:group (passwd:gid (getpwnam "squid"))
)))
)
(shepherd-action
(name 'kill)
(documentation "Ultimatly kill the squid process.")
(procedure #~(lambda _ (exec-command
(list
#$(file-append squid "/sbin/squid")
"-k" "kill"
"-f" #$config-file
)
#:pid-file #$pid-file
#:log-file #$log-file
#:user (passwd:uid (getpwnam "squid"))
#:group (passwd:gid (getpwnam "squid"))
)))
)
))
) )
) )
) )