runtime/scripts/enable_memcached.sh

18 lines
362 B
Bash
Raw Normal View History

2020-02-02 21:06:11 +00:00
#!/bin/sh
cat << EOF > /srv/conf/supervisor.d/memcached.conf
[program:memcached]
command=/usr/bin/memcached -m 64
autostart=true
autorestart=true
stdout_logfile=/srv/log/memcached.log
stdout_logfile_maxbytes=2MB
stdout_logfile_backups=5
stdout_capture_maxbytes=2MB
stdout_events_enabled=false
redirect_stderr=true
EOF
supervisorctl reread
supervisorctl update