mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-29 21:58:36 +02:00
updating squid service
This commit is contained in:
parent
0211dc997d
commit
4d1384546a
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,7 @@
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
#:log-file #$log-file
|
#:log-file #$log-file
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
#:user (passwd:uid (getpwnam "squid"))
|
||||||
|
#:group (passwd:gid (getpwnam "squid"))
|
||||||
))
|
))
|
||||||
(stop #~(lambda _ (exec-command
|
(stop #~(lambda _ (exec-command
|
||||||
(list
|
(list
|
||||||
|
@ -69,6 +70,7 @@
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
#:log-file #$log-file
|
#:log-file #$log-file
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
#:user (passwd:uid (getpwnam "squid"))
|
||||||
|
#:group (passwd:gid (getpwnam "squid"))
|
||||||
)))
|
)))
|
||||||
(actions (list
|
(actions (list
|
||||||
(shepherd-action
|
(shepherd-action
|
||||||
|
@ -85,6 +87,7 @@
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
#:log-file #$log-file
|
#:log-file #$log-file
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
#:user (passwd:uid (getpwnam "squid"))
|
||||||
|
#:group (passwd:gid (getpwnam "squid"))
|
||||||
)))
|
)))
|
||||||
)
|
)
|
||||||
(shepherd-action
|
(shepherd-action
|
||||||
|
@ -101,6 +104,7 @@
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
#:log-file #$log-file
|
#:log-file #$log-file
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
#:user (passwd:uid (getpwnam "squid"))
|
||||||
|
#:group (passwd:gid (getpwnam "squid"))
|
||||||
)))
|
)))
|
||||||
)
|
)
|
||||||
(shepherd-action
|
(shepherd-action
|
||||||
|
@ -117,6 +121,7 @@
|
||||||
#:pid-file #$pid-file
|
#:pid-file #$pid-file
|
||||||
#:log-file #$log-file
|
#:log-file #$log-file
|
||||||
#:user (passwd:uid (getpwnam "squid"))
|
#:user (passwd:uid (getpwnam "squid"))
|
||||||
|
#:group (passwd:gid (getpwnam "squid"))
|
||||||
)))
|
)))
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
@ -145,6 +150,7 @@
|
||||||
(chown "/var/cache/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/cache/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
(chown "/var/log/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/log/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
(chown "/var/spool/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/spool/squid" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
|
(chown "/var/log/squid/squid.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
(chown "/var/log/squid/squid_access.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/log/squid/squid_access.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
(chown "/var/log/squid/squid_cache.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/log/squid/squid_cache.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
(chown "/var/log/squid/squid_cache_store.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
(chown "/var/log/squid/squid_cache_store.log" (passwd:uid (getpwnam "squid")) (passwd:gid (getpwnam "squid")))
|
||||||
|
|
Loading…
Add table
Reference in a new issue