Open AngelosF opened 7 years ago
Why not providing a openhab:wrapper-install
command that internally uses the wrapper:install
command with the correct arguments and modifies the wrapper configuration itself?
That's a great idea! I don't even know if this is possible within Karaf (a new console command?) I am not that advanced :)
Hi All,
TL;DR: wrapper:install produces an incomplete wrapper.conf that needs major changes for the Windows OH2 service to work
Issue: Since
bin\setenv.bat
(which calls alsooh2_dir_layout.bat
) on Windows is NOT used by the Apache Karaf Service Wrapper" (source: Link), we need to find a way to "fix" the default wrapper.conf file that is being generated by the wrapper:install command.One way would be to include in the distro a script that runs all the necessary commands to install the Windows service.
It would have to:
What solutions can be applied here?
Relevant info: https://community.openhab.org/t/documenting-openhab-2/10568/151 https://github.com/openhab/openhab-docs/pull/398#issuecomment-309223733 http://docs.openhab.org/installation/windows.html#starting-openhab-as-a-service