mirror of https://github.com/CIRCL/Circlean
Save the PID of the music script in order to properly kill it
parent
f3a4860a7a
commit
6ae56e26cb
|
@ -13,11 +13,14 @@ fi
|
||||||
clean(){
|
clean(){
|
||||||
echo Done, cleaning.
|
echo Done, cleaning.
|
||||||
${SYNC}
|
${SYNC}
|
||||||
|
kill -9 $(cat /tmp/music.pid)
|
||||||
|
rm -f /tmp/music.pid
|
||||||
}
|
}
|
||||||
|
|
||||||
trap clean EXIT TERM INT
|
trap clean EXIT TERM INT
|
||||||
|
|
||||||
./music.sh &
|
./music.sh &
|
||||||
|
echo $! > /tmp/music.pid
|
||||||
|
|
||||||
# Dumb libreoffice wants to write into ~/libreoffice or crash with
|
# Dumb libreoffice wants to write into ~/libreoffice or crash with
|
||||||
# com::sun::star::uno::RuntimeException
|
# com::sun::star::uno::RuntimeException
|
||||||
|
@ -26,4 +29,3 @@ chown -R kitten:kitten /tmp/libreoffice
|
||||||
|
|
||||||
su ${USERNAME} -c ./groomer.sh
|
su ${USERNAME} -c ./groomer.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue