summaryrefslogtreecommitdiffstats
path: root/lava-slave/scripts/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lava-slave/scripts/start.sh')
-rwxr-xr-xlava-slave/scripts/start.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/lava-slave/scripts/start.sh b/lava-slave/scripts/start.sh
index dcbbcd7..c9645b3 100755
--- a/lava-slave/scripts/start.sh
+++ b/lava-slave/scripts/start.sh
@@ -10,6 +10,17 @@ service tftpd-hpa start || exit 4
rm -f /var/run/lava-slave.pid
service lava-slave start || exit 5
+if [ -e /etc/lavapdu ];then
+ /etc/init.d/postgresql start || exit 6
+
+ echo "== Start lavapdu listen =="
+ /etc/init.d/lavapdu-listen start || exit 7
+ # lava listen create the database, let it some time
+ sleep 5
+ echo "== Start lavapdu runner =="
+ /etc/init.d/lavapdu-runner start || exit 8
+fi
+
touch /var/run/conmux-registry
/usr/sbin/conmux-registry 63000 /var/run/conmux-registry&
sleep 2