mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
removing actions
This commit is contained in:
parent
408a5842aa
commit
11af999108
1 changed files with 0 additions and 41 deletions
|
@ -59,47 +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
|
|
||||||
)
|
|
||||||
#: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
|
|
||||||
)
|
|
||||||
#: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
|
|
||||||
)
|
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
|
||||||
#:group (passwd:gid (getpwnam "squid"))
|
|
||||||
)))
|
|
||||||
)
|
|
||||||
))
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue