aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/nfs.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2017-08-05 22:32:24 +0100
committerChristopher Baines <mail@cbaines.net>2017-08-15 22:24:15 +0100
commit6230e155afd8c43c12ee3f03032aac34433db11a (patch)
tree6223f60bdf620c6630cca8d0529d4352d79251a4 /gnu/tests/nfs.scm
parent2434f5cedff505be1e79fdb35c42b229de26ae92 (diff)
downloadguix-6230e155afd8c43c12ee3f03032aac34433db11a.tar
guix-6230e155afd8c43c12ee3f03032aac34433db11a.tar.gz
gnu: Fix memcached service startup.
Memcached changes to the memcached user from root before writing the PID file. This means that it must be able to write the PID file as the memcached user. To make this work, create the /var/run/memcached directory when the service starts, make it owned by memcached, and change memcached to write the PID file to /var/run/memcached/pid. This wasn't picked up by the system test as the "service running" part was too permissive, and only failed on an error. Instead, test the response from calling start-service and check that the PID is a number. * gnu/services/databases.scm (memcached-activation): New variable. (memcached-shepherd-service): Change PID file location. (memcached-service-type): Extend the activation-service-type. * gnu/tests/databases.scm (run-memcached-test)[test]: Change the "service running" test to check the response from the shepherd.
Diffstat (limited to 'gnu/tests/nfs.scm')
0 files changed, 0 insertions, 0 deletions