pi@hassbian:~ $ sudo systemctl start openhab2.service
pi@hassbian:~ $ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; disabled)
Active: failed (Result: start-limit) since Sun 2017-10-01 12:26:56 CEST; 4s ago
Docs: http://docs.openhab.org https://community.openhab.org
Process: 11392 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=127)
Process: 11324 ExecStart=/usr/share/openhab2/start.sh server (code=exited, status=127)
Main PID: 11324 (code=exited, status=127)
Oct 01 12:26:56 hassbian systemd[1]: Unit openhab2.service entered failed state.
Oct 01 12:26:56 hassbian systemd[1]: openhab2.service holdoff time over, scheduling restart.
Oct 01 12:26:56 hassbian systemd[1]: Stopping openHAB 2 - empowering the smart home…
Oct 01 12:26:56 hassbian systemd[1]: Starting openHAB 2 - empowering the smart home…
Oct 01 12:26:56 hassbian systemd[1]: openhab2.service start request repeated too quickly, refusing to start.
Oct 01 12:26:56 hassbian systemd[1]: Failed to start openHAB 2 - empowering the smart home.
Oct 01 12:26:56 hassbian systemd[1]: Unit openhab2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
pi@hassbian:~ $
pi@hassbian:~ $ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: active (running) since Sun 2017-10-01 12:45:21 CEST; 3s ago
Process: 17448 ExecStop=/usr/share/openhab2/runtime/bin/stop (code=exited, status=127)
Main PID: 23426 (karaf)
CGroup: /system.slice/openhab2.service
├─23426 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
└─23590 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/u…
Oct 01 12:45:21 hassbian systemd[1]: Started openHAB 2 - empowering the smart home.
Oct 01 12:45:21 hassbian start.sh[23426]: Launching the openHAB runtime…
pi@hassbian:~ $
Now
pi@hassbian:~ $ sudo systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: active (running) since Sun 2017-10-01 12:51:21 CEST; 42s ago
Main PID: 767 (karaf)
CGroup: /system.slice/openhab2.service
├─ 767 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
└─1274 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/us…
Oct 01 12:51:21 hassbian systemd[1]: Started openHAB 2 - empowering the smart home.
Oct 01 12:51:21 hassbian start.sh[767]: Launching the openHAB runtime…
pi@hassbian:~ $
Just some other thought…I was trying once to put both systems on one
system too and was not unable to resolve some conflicts that arouse. Was
trying to remember the details, but …nothing…it may have and to do
with port conflicts but I really don’t remember anymore, except that I gave
up and took two separate systems.