guix/gnu/services
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 services: admin: Simplify the handling of the Tailon debug? option. 2017-08-09 23:50:35 +01:00
audio.scm gnu: Add mpd service. 2017-08-13 07:36:32 +01:00
avahi.scm
base.scm services: guix-publish: Run in a UTF-8 locale. 2017-07-27 14:51:03 +02:00
configuration.scm services: configuration: Rewrite id procedure. 2017-03-24 16:09:17 +01:00
cuirass.scm services: cuirass: Set 'GIT_SSL_CAINFO' and 'GIT_EXEC_PATH'. 2017-07-30 16:23:19 +02:00
cups.scm services: Add a default value to various service types. 2017-04-16 00:48:08 +02:00
databases.scm gnu: Fix memcached service startup. 2017-08-15 22:24:15 +01:00
dbus.scm services: dbus, polkit: Add default value. 2017-07-11 00:48:51 +02:00
desktop.scm services: elogind: Start from the Shepherd. 2017-07-11 11:11:52 +02:00
dict.scm services: Add a default value to various service types. 2017-04-16 00:48:08 +02:00
dns.scm gnu: services: use seconds instead of duration strings. 2017-06-21 19:29:57 +02:00
herd.scm services: herd: Add a stop-service procedure. 2017-08-08 20:49:08 +01:00
kerberos.scm
lirc.scm
mail.scm services: Make exim-service-type use mail-aliases-service-type 2017-04-19 23:43:50 +02:00
mcron.scm services: Add a default value to various service types. 2017-04-16 00:48:08 +02:00
messaging.scm services: Factorize define-maybe macro. 2017-03-24 16:09:17 +01:00
networking.scm services: ntp: Use the NTP pool via the 'guix' zone. 2017-07-30 20:21:36 -04:00
nfs.scm
pm.scm services: Add 'thermald-service-type'. 2017-05-14 18:56:32 -05:00
sddm.scm
shepherd.scm ui: Rename '_' to 'G_'. 2017-05-03 16:16:17 +02:00
spice.scm
ssh.scm services: openssh: Extensions provide extra authorized keys. 2017-07-30 16:23:19 +02:00
sysctl.scm services: sysctl: Fix typo. 2017-07-18 20:16:03 +08:00
version-control.scm
vpn.scm doc: Fix typos. 2017-03-31 20:55:05 -05:00
web.scm gnu: Add fcgiwrap service. 2017-07-26 11:00:04 +02:00
xorg.scm