Reorganize some files and import some others

This commit is contained in:
2015-01-14 15:14:22 +00:00
parent c03924f6a6
commit ecb0bb0815
29 changed files with 151 additions and 158 deletions

7
build/runit/lighttpd Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
mkdir -p `dirname $LIGHTTPD_LOG` $LIGHTTPD_DOMAINS
chown www-data:www-data `dirname $LIGHTTPD_LOG`
if [[ ! -e $LIGHTTPD_DOMAINS ]]; then
touch $LIGHTTPD_DOMAINS/empty.conf
fi
/usr/sbin/lighttpd -D -f $LIGHTTPD_CONFIG

View File

@@ -13,6 +13,6 @@ if [[ -n "$MYSQL_SETUP" ]]; then
until [[ -n $(netstat -an | grep 3306) ]]; do
sleep 1
done
mysqladmin -u root password kreeft
mysqladmin -u root password dummy
fg
fi

View File

@@ -1,5 +1,4 @@
#!/bin/sh
echo "$HOST_ADDR host" >> /tmp/hosts
mkdir -p `dirname $REDIS_LOG` $REDIS_DATA
sysctl vm.overcommit_memory=1
/usr/bin/redis-server $REDIS_CONFIG