openHAB autostart on Raspberry pi

I try to make openhab to start with system using this tutorial http://www.homeautomationforgeeks.com/openhab_start.shtml

but i have same error

 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.

sudo apr-get update
sudo apt-get install openhab
sudo apt-get install openhab-runtime

and giving me this error

E: Unable to locate package openhab

any idea???

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.

A very detailed discussion on systemd is here.

The following is extracted from the official instructions that @watou mentioned in the previous post.

Start openHAB - manually
Init based on sysVinit (e.g. Debian 7 / Ubuntu 14.x and earlier)
sudo /etc/init.d/openhab start sudo /etc/init.d/openhab status
Init based on systemd (e.g. Debian 8 / Ubuntu 15.x and higher)
sudo systemctl start openhab