openhab / openhab-linuxpkg

Repo for Linux packages
Eclipse Public License 2.0
18 stars 33 forks source link

SysV vs. Systemd on Raspbian Stretch #134

Closed pfink closed 4 years ago

pfink commented 5 years ago

Recently I installed the 2.3 stable release on a fresh copy of Raspbian Stretch. On this installation, a SysV init script was installed, even though I see that a systemd service would be available. Is it intended that still a SysV init service is used?

pfink commented 5 years ago

Ah, now I found out that the SysV init script installed does not seem to be used at all, instead /usr/lib/systemd/system/openhab2.service is used. Does it make sense to still install /etc/init.d/openhab2 then? This a bit confusing for people like me who are not experts in systemd/SysV.

BClark09 commented 5 years ago

Hi @pfink sorry for the delay in getting back to you.

The package management scripts contain both because it is difficult at the point of install which script to use and where to put it.

After installation, if the install scripts find the systemctl executable then it will advise the user how to enable it, perhaps at this point we should decide that systemctl is the standard and remove the SysV script? wdyt?

pfink commented 5 years ago

Sounds good!