Java 通过主管运行soffice.bin
我的上司:Java 通过主管运行soffice.bin,java,openoffice.org,libreoffice,supervisord,Java,Openoffice.org,Libreoffice,Supervisord,我的上司: [program:libre] user = myuser directory = /user/home/directory command = /usr/lib/libreoffice/program/soffice.bin "--accept=socket,host=127.0.0.1,port=9000,tcpNoDelay=1;urp;" --headless --nodefault --nofirststartwizard --nolockcheck --nologo --
[program:libre]
user = myuser
directory = /user/home/directory
command = /usr/lib/libreoffice/program/soffice.bin "--accept=socket,host=127.0.0.1,port=9000,tcpNoDelay=1;urp;" --headless --nodefault --nofirststartwizard --nolockcheck --nologo --norestore
stdout_logfile= /var/log/libreoffice-headless.log
redirect_stderr = true
autostart = true
soffice.bin不会在用户“myuser”下启动。
以下是错误日志:
但如果我在控制台中“myuser”下运行命令,它将启动。您作为什么用户启动SupervisorOrd?您可以尝试在配置中设置environment=HOME=/HOME/myuser吗?soffice需要设置HOME env变量。您可能会发现此链接与此相关:
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'