add LOGS variable to relaunch.sh
This commit is contained in:
parent
46d0983c2a
commit
7e05e83022
|
@ -44,9 +44,9 @@ vmctl reload
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
mkfifo -m 600 /tmp/pipe_${1}
|
mkfifo -m 600 /tmp/pipe_${1}
|
||||||
install -g mischa -m 600 -o mischa /dev/null /home/mischa/${1}.log
|
install -g mischa -m 600 -o mischa /dev/null ${LOGS}/${1}.log
|
||||||
|
|
||||||
echo -n "autoinstall(8) ${1}, log output /home/mischa/${1}.log... "
|
echo -n "autoinstall(8) ${1}, log output ${LOGS}/${1}.log... "
|
||||||
|
|
||||||
vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
printf '%s\n' "$line" >&2
|
printf '%s\n' "$line" >&2
|
||||||
|
@ -62,7 +62,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
#exit 1
|
#exit 1
|
||||||
#;;
|
#;;
|
||||||
esac
|
esac
|
||||||
done > /tmp/pipe_${1} 2> /home/mischa/${1}.log
|
done > /tmp/pipe_${1} 2> ${LOGS}/${1}.log
|
||||||
|
|
||||||
echo "completed"
|
echo "completed"
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ vmctl start -c ${1} < /tmp/pipe_${1} | while read line; do
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done > /tmp/pipe_${1} 2>> /home/mischa/${1}.log
|
done > /tmp/pipe_${1} 2>> ${LOGS}/${1}.log
|
||||||
|
|
||||||
rm -rf /tmp/pipe_${1}
|
rm -rf /tmp/pipe_${1}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue