diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 14:07:15 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 14:11:58 +0200 |
commit | 26cc005179760bd25b8bdd724a936847c81d24eb (patch) | |
tree | 0e3aac8edbfd28384469190795fab4e9d07cb9ec /lava-slave/scripts | |
parent | 905a723528e499e9eae193b4d72388076d561f6c (diff) |
Add support for lavapdu
Diffstat (limited to 'lava-slave/scripts')
-rwxr-xr-x | lava-slave/scripts/start.sh | 11 |
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 |