2014-04-27 21:46:59 +00:00
|
|
|
#!/bin/sh
|
2014-06-10 00:05:16 +00:00
|
|
|
|
2014-04-27 21:46:59 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
[ -d /dev/net ] ||
|
|
|
|
mkdir -p /dev/net
|
|
|
|
[ -c /dev/net/tun ] ||
|
|
|
|
mknod /dev/net/tun c 10 200
|
|
|
|
|
2014-08-05 14:18:19 +00:00
|
|
|
cd /app
|
|
|
|
|
2014-09-30 15:16:51 +00:00
|
|
|
DATA_DIRECTORY=/data
|
2014-09-19 23:53:06 +00:00
|
|
|
if [ -d "$DATA_DIRECTORY" ]; then
|
|
|
|
cp bin/enter.sh $DATA_DIRECTORY/enter.sh
|
|
|
|
chmod +x $DATA_DIRECTORY/enter.sh
|
|
|
|
fi
|
|
|
|
|
2015-01-02 17:34:42 +00:00
|
|
|
mkdir -p /var/log/supervisor && touch /var/log/supervisor/supervisord.log
|
2015-08-06 16:05:47 +00:00
|
|
|
mkdir -p /var/run/resin
|
|
|
|
mount -t tmpfs -o size=1m tmpfs /var/run/resin
|
2015-01-02 17:34:42 +00:00
|
|
|
|
|
|
|
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
|
|
|
|
|
|
|
supervisorctl start resin-supervisor
|
|
|
|
|
|
|
|
tail -f /var/log/supervisor/supervisord.log
|