guix/gnu/tests
Christopher Baines 6230e155af
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.
2017-08-15 22:24:15 +01:00
..
admin.scm gnu: services: admin: Add tailon. 2017-07-29 12:45:03 +01:00
audio.scm gnu: Add mpd service. 2017-08-13 07:36:32 +01:00
base.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
databases.scm gnu: Fix memcached service startup. 2017-08-15 22:24:15 +01:00
dict.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
install.scm
mail.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
messaging.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
networking.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
nfs.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
ssh.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00
web.scm tests: Use 'virtual-machine' records instead of monadic procedures. 2017-07-20 11:57:13 +02:00