Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 通过主管运行soffice.bin_Java_Openoffice.org_Libreoffice_Supervisord - Fatal编程技术网

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'