Answer the question
In order to leave comments, you need to log in
How to execute code in Debian after system restart (need to run memcached)?
#!/bin/bash
mkdir /run/memcached
chown www-data /run/memcached
service memcached start
Answer the question
In order to leave comments, you need to log in
In this case, fix the fam service (/etc/init.d/memcached), but this is a very bad option. Or rather, not very good. You can raise your personal memcached on another port with your own settings, leaving the default one as it is.
Optional:
/var/run/ is not really intended for storing data ( https://ru.wikipedia.org/wiki/FHS). Your data should be put in /tmp/memcached or even in /run/shm/memcached
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question