Hi!
I’ve installed openHAB on my Raspberry PI 2 running Raspbian Jessie. It is installed in /opt/openhab. I can start it using “sudo ./start.sh” and am able to access the web interface. I then tried to install it as service, but it just doesnt seem to work.
I used this guide (systemd section): https://openhabdoc.readthedocs.io/de/latest/Autostart/#autostart-mit-systemd
When I run “netstat -tlpe” I cannot see openHAB listed.
pi@darthbane:/opt/openhab $ sudo service openhab start
pi@darthbane:/opt/openhab $ sudo service openhab status
â— openhab.service - A vendor and technology agnostic open source automation software for your smart home.
Loaded: loaded (/etc/systemd/system/openhab.service; enabled)
Active: active (running) since Mi 2017-01-11 15:51:31 CET; 8min ago
Process: 567 ExecStart=/usr/bin/openhab (code=exited, status=0/SUCCESS)
Main PID: 580 (java)
CGroup: /system.slice/openhab.service
└─580 java -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Djetty.port.ssl=8443 -Djetty.home=. -Dlogback.configurationFile=configurations...
Jan 11 15:52:45 darthbane openhab[567]: 2017-01-11 15:52:45.393 [ERROR] [b.s.internal.SysteminfoBinding] - System monitor error: {}
Jan 11 15:52:45 darthbane openhab[567]: org.hyperic.sigar.SigarException: java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getNetInterfaceList()[Ljava/lang/String;
Jan 11 15:52:45 darthbane openhab[567]: at org.hyperic.sigar.SigarProxyCache.invoke(SigarProxyCache.java:220) ~[sigar-1.6.4.jar:na]
Jan 11 15:52:45 darthbane openhab[567]: at com.sun.proxy.$Proxy76.getNetInterfaceList(Unknown Source) ~[na:na]
Jan 11 15:52:45 darthbane openhab[567]: at org.openhab.binding.systeminfo.internal.SysteminfoBinding.initializeSystemMonitor(SysteminfoBinding.java:419) [bundlefile:na]
Jan 11 15:52:45 darthbane openhab[567]: at org.openhab.binding.systeminfo.internal.SysteminfoBinding.updated(SysteminfoBinding.java:403) [bundlefile:na]
Jan 11 15:52:45 darthbane openhab[567]: at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120...1841.jar:na]
Jan 11 15:52:45 darthbane openhab[567]: at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
Jan 11 15:52:45 darthbane openhab[567]: 2017-01-11 15:52:45.399 [INFO ] [.service.AbstractActiveService] - Systeminfo Refresh Service has been started
Jan 11 16:00:03 darthbane systemd[1]: Started A vendor and technology agnostic open source automation software for your smart home..
Hint: Some lines were ellipsized, use -l to show in full.
pi@darthbane:/opt/openhab $