mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-25 19:17:22 +01:00
Dockerize using phusion/baseimage and runit services
This commit is contained in:
18
containers/docker/runit/memcached/run
Executable file
18
containers/docker/runit/memcached/run
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DAEMON=/usr/bin/memcached
|
||||
|
||||
test -x $DAEMON || exit 0
|
||||
set -e
|
||||
|
||||
# Edit /etc/default/memcached to change this.
|
||||
ENABLE_MEMCACHED=no
|
||||
test -r /etc/default/memcached && . /etc/default/memcached
|
||||
|
||||
echo -n "Starting $DESC: "
|
||||
if [ $ENABLE_MEMCACHED = yes ]; then
|
||||
exec /sbin/setuser memcache $DAEMON
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user