is someone still supporting openhab? I know it’s becoming spring and people spent more time outdoor but this issue persists since 8 month at least. @Kai are you able to provide me with a hint how to solve this issue?
I already tried a fresh install fro 2.2 and 2.3 snapshot but still the LaunchDaemon doesn’t work.
Thanks a lot in advance,
Hi Holger, you mention that you don’t use start.sh when starting openHAB as a daemon. How do you start it then? Can you share your plist file? I tried to start karaf directly but still get the same error with the dumb terminal and eventual shutdown.
Hi @Berthold. My startscript works similar. The main problem was that the start.sh script is starting karaf with parameter “start”. (internally the start.sh script calls “…/karaf start”) This includes the startup of the karaf console which is the reason why the rest does not work.
I’m just surprised that there is a parameter “server”. I use the parameter “daemon”.
So what I call from my daemon script is “…/karaf daemon”. This disables the karaf console and everything works fine.
Now you have to options. Either modify start.sh to use the
I’m not sure if this helps you, because I’m using systemd
at the end you can use the start.sh script too. Just be sure that you call it with the parameter “daemon”
means something like “start.sh daemon” should work. If this is not enough you can also export the environment variable OPENHAB_STARTMODE=daemon. But I guess this variable was just a helper and is not really needed.
i had to rename start.sh into start.command to be able to execute it at startup.
do you mean I just have to add the server parameter there or how did you execute the start.sh at launch? did you create the .plist linked In the article for OH1?
ok further progress using the parameters.
server: the terminal window has to stay open or it will quit the server (makes sense).
daemon: I can quit the terminal window and openhab is still running.
now I just need to quit the window after execution. any advice?