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!33
This commit is contained in:
commit
cf3505af71
1 changed files with 0 additions and 47 deletions
|
@ -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"))
|
|
||||||
)))
|
|
||||||
)
|
|
||||||
))
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue