-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
36 lines (25 loc) · 756 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
echo "starting nginx"
service nginx start
echo "starting php7.0-fpm"
service php7.0-fpm start
echo "starting supervisor"
service supervisor start
echo "starting mysql"
service mysql start
echo "starting mongo"
/usr/bin/mongod --fork --logpath /var/log/mongodb.log --config /etc/mongod.conf
#create admin account to memcached using SASL
if [ ! -f /.memcached_admin_created ]; then
/create_memcached_admin_user.sh
fi
echo "starting memcached"
service memcached start
echo "starting beanstalk"
/etc/init.d/beanstalkd start
echo "starting redis server"
redis-server /etc/redis/redis.conf
echo "starting postgresql"
service postgresql start
echo "starting ssh (ssh is the only service keeping this container alive)"
/usr/sbin/sshd -D -e