2017-02-06 13:40:28 -05:00
|
|
|
#!/bin/bash
|
2017-06-19 17:30:06 -04:00
|
|
|
set -eu -o pipefail
|
2017-02-06 13:40:28 -05:00
|
|
|
|
|
|
|
exec >> /var/log/aio/init.log
|
|
|
|
exec 2>&1
|
|
|
|
|
|
|
|
# Start the services
|
|
|
|
echo [`date`] - Starting services...
|
2017-03-08 09:30:55 -05:00
|
|
|
mkdir -p $AIO_NGINX_LOGS_DIR
|
|
|
|
mkdir -p $TEST_AIO_NGINX_LOGS_DIR
|
|
|
|
|
2017-02-06 13:40:28 -05:00
|
|
|
service rsyslog start
|
|
|
|
service cron start
|
|
|
|
service dnsmasq start
|
|
|
|
service nginx start
|
2017-03-01 17:05:59 -05:00
|
|
|
service pm2-root start
|
2018-08-15 08:47:45 -04:00
|
|
|
aio-preview-server-prod start
|
2017-02-06 13:40:28 -05:00
|
|
|
echo [`date`] - Services started successfully.
|