1
0
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:
Toilal
2015-04-04 17:50:16 +02:00
parent 2b9ce85ba8
commit 1eb77c332b
30 changed files with 915 additions and 160 deletions

View 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