diff --git a/fs/opt/groomer/init.sh b/fs/opt/groomer/init.sh index cc029e5..20aa658 100755 --- a/fs/opt/groomer/init.sh +++ b/fs/opt/groomer/init.sh @@ -13,11 +13,14 @@ fi clean(){ echo Done, cleaning. ${SYNC} + kill -9 $(cat /tmp/music.pid) + rm -f /tmp/music.pid } trap clean EXIT TERM INT ./music.sh & +echo $! > /tmp/music.pid # Dumb libreoffice wants to write into ~/libreoffice or crash with # com::sun::star::uno::RuntimeException @@ -26,4 +29,3 @@ chown -R kitten:kitten /tmp/libreoffice su ${USERNAME} -c ./groomer.sh -