diff options
author | khilman <khilman@users.noreply.github.com> | 2018-05-25 08:22:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 08:22:05 -0700 |
commit | 2d79d03f5818c096535c9784b12df5ea99c0dbff (patch) | |
tree | 74a361f40db3149eeecc6e468933c9ca968358ca /lava-slave/scripts/start.sh | |
parent | b71a8c43342631b540ac2a3b05962f640f2f0fd7 (diff) | |
parent | 287e03c09e34ec77d696fcd7ad55912cc127a859 (diff) |
Merge pull request #25 from montjoie/miscfix03
Miscfix03
Diffstat (limited to 'lava-slave/scripts/start.sh')
-rwxr-xr-x | lava-slave/scripts/start.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lava-slave/scripts/start.sh b/lava-slave/scripts/start.sh index dcbbcd7..92e76bb 100755 --- a/lava-slave/scripts/start.sh +++ b/lava-slave/scripts/start.sh @@ -6,18 +6,22 @@ fi service tftpd-hpa start || exit 4 -# FIXME lava-slave does not run if old pid is present -rm -f /var/run/lava-slave.pid -service lava-slave start || exit 5 - touch /var/run/conmux-registry /usr/sbin/conmux-registry 63000 /var/run/conmux-registry& sleep 2 for item in $(ls /etc/conmux/*cf) do echo "Add $item" + # On some OS, the rights/user from host are not duplicated on guest + grep -o '/dev/[a-zA-Z0-9_-]*' $item | xargs chown uucp /usr/sbin/conmux $item & done # start an http file server for boot/transfer_overlay support -(cd /var/lib/lava/dispatcher; python -m SimpleHTTPServer 80) +(cd /var/lib/lava/dispatcher; python -m SimpleHTTPServer 80) & + +# FIXME lava-slave does not run if old pid is present +rm -f /var/run/lava-slave.pid +service lava-slave start || exit 5 + +sleep 3650d |