6230e155af
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. |
||
---|---|---|
.. | ||
admin.scm | ||
audio.scm | ||
avahi.scm | ||
base.scm | ||
configuration.scm | ||
cuirass.scm | ||
cups.scm | ||
databases.scm | ||
dbus.scm | ||
desktop.scm | ||
dict.scm | ||
dns.scm | ||
herd.scm | ||
kerberos.scm | ||
lirc.scm | ||
mail.scm | ||
mcron.scm | ||
messaging.scm | ||
networking.scm | ||
nfs.scm | ||
pm.scm | ||
sddm.scm | ||
shepherd.scm | ||
spice.scm | ||
ssh.scm | ||
sysctl.scm | ||
version-control.scm | ||
vpn.scm | ||
web.scm | ||
xorg.scm |