Check if OpenHAB is running - Invalid command '' received

Hi,
I’m also on S951.

When I run “/usr/share/openhab2/runtime/bin/karaf status”, I get:

root@DiskStation:/# /usr/share/openhab2/runtime/bin/karaf status
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
/usr/share/openhab2/runtime/bin/setenv: line 161: die: command not found
/usr/share/openhab2/runtime/bin/setenv: line 181: [: : integer expression expected
/usr/share/openhab2/runtime/bin/karaf: line 261: [: : integer expression expected
/usr/share/openhab2/runtime/bin/karaf: line 306: [: : integer expression expected
/usr/share/openhab2/runtime/bin/karaf: line 497: /var/packages/java8/target/ejdk1.8.0_121/linux_i586/jre/bin/java: No such file or directory

When running “systemctl status openhab2”, I get:

root@DiskStation:/# systemctl status openhab2
Running in chroot, ignoring request.

When I run “service openhab2 status”, I get:

root@DiskStation:/# service openhab2 status
status: Ignoring predefined value for KARAF_HOME
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Running ...

And that last command also results in a “[WARN ] [ache.karaf.main.ShutdownSocketThread] - Karaf shutdown socket: Invalid command ‘’ received”

I guess it is related to the fact that I have installed OH under chroot. This is a way to have Debian (and thus apt-get) on my Synology.