Why can’t run the command in the background?
/usr/lib/libreoffice/program/soffice.bin \
--headless \
--invisible \
--nocrashreport \
--nodefault \
--nofirststartwizard \
--nologo --norestore \
--accept='socket,host=localhost,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext'