2023-04-07 07:55:36 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
echo "Starting Memcached..."
|
|
|
|
|
sleep 5
|
2026-10-20 15:44:14 -07:00
|
|
|
# exec so memcached replaces bash as PID 1. bash as PID 1 has no SIGTERM
|
|
|
|
|
# handler, so the kernel dropped `docker stop`'s SIGTERM and docker SIGKILLed
|
|
|
|
|
# the container after the full 10s timeout (exit 137). memcached installs its
|
|
|
|
|
# own SIGTERM/SIGINT handlers, so as PID 1 it shuts down immediately.
|
|
|
|
|
exec /usr/bin/memcached -u memcached -l 0.0.0.0
|