sudo /etc/init.d/openhab start
[....] Starting openhab (via systemctl): openhab.serviceWarning: Unit file of openhab.service changed on disk, 'systemctl daemon-reload' recommended.
`sudo /etc/init.d/openhab status -l
Б≈▐ openhab.service - LSB: OpenHAB Daemon
Loaded: loaded (/etc/init.d/openhab)
Active: active (exited) since Fri 2016-01-29 01:25:14 EET; 29min ago
Process: 9023 ExecStop=/etc/init.d/openhab stop (code=exited, status=0/SUCCESS)
Process: 10839 ExecStart=/etc/init.d/openhab start (code=exited, status=0/SUCCESS)
Jan 29 01:25:14 raspberrypi openhab[10839]: Starting system openhab daemon:start-stop-daemon: --start needs --exec or --startas
Jan 29 01:25:14 raspberrypi openhab[10839]: Try ‘start-stop-daemon --help’ for more information.
Jan 29 01:25:14 raspberrypi openhab[10839]: /etc/init.d/openhab: 59: /etc/init.d/openhab: --chdir: not found
Jan 29 01:25:14 raspberrypi openhab[10839]: failed!
Jan 29 01:25:14 raspberrypi systemd[1]: Started LSB: OpenHAB Daemon.
Jan 29 01:30:32 raspberrypi systemd[1]: Started LSB: OpenHAB Daemon.
Jan 29 01:52:32 raspberrypi systemd[1]: Started LSB: OpenHAB Daemon.
Warning: Unit file changed on disk, ‘systemctl daemon-reload’ recommended.
`
Using the apt-get method of installing openHAB, per the official documentation in the wiki, would not exhibit this failure. Is there any chance you could install that way instead? While some of the third-party guides have lots of useful information, installing by hand usually leads to issues and unnecessary effort. The apt-get method also offers very easy upgrades.
Please have a look at the official instructions for the steps to perform the apt-get installation. There is no package called openhab, as reported. You may also have to do the preparatory steps listing in the document as well.
This depends a little on what RP firmware you’re using. The latest Raspbian Jessie uses systemd now. So any init scripts need to be converted, or inital setup needs to use a systemd configuration.