
- #Java on mac for openhab mac os x#
- #Java on mac for openhab software#
Create an _openhab non-login user and group to run the service. Otherwise the daemon will run as root, which is not a good practice but which will certainly work)
Add user and group to the launchd ist and launch it.ĭetails of the specific steps I used: (Note that steps 1-3 and step 6 are recommended, but not required. Generate the install-service in openhab, and then fix the bugs in it. configure the openhab folder to a good place and with the right permissions so that it can be run as a daemon on Mac. There are three things I needed to do to be successful: This deserves a better explanation and more step-by-step instructions, but until I’m convinced there’s more than two of us trying to do this I am not going to invest the time. I put this together from several posts from stackoverflow, here, and elsewhere. Well, it was a long slog but I finally put bits and pieces together the allow running openHAB as a service on Mac Catalina (10.15.2) on my mac mini. #Java on mac for openhab software#
If in general interest, probably some of the answers to the questions above could be included in the setup documentation in the Mac section?Ī vendor and technology agnostic open source automation software for your home
#Java on mac for openhab mac os x#
OpenHAB in Service Wrapper runs when ran manually, not in launchd on Mac OS X High Sierra
Instead of opening openHAB manually each time when I have booted the Mac (and leaving a terminal window open) I would like to start it automatically (as a service?).ĭiscussions have started, yet not concluded to a solution:. Is it a good idea to create a dedicated user account that is reserved for running openHAB? Do I have to apply specific rights to the openHAB directory folder? What are the standard/best-practice security settings to operate openHAB on a Mac? Preferably I want to run openHAB with as tight security and least privileges as possible and not go with root rights or via sudo.
opt/openHAB, dedicated project folder from root, e.
What is the standard / best-practice directory path to place applications into on macOS systems ? (e. My Goal is to build an openHAB installation on my Mac that is auto-starting, conformant with Mac best practice and secure!