I’ve just gotten started with Habitat, after running into this issue: https://forums.facto rio.com/viewtopic.php?f=49&t=54619 with a game server on an older glibc. (Actually, compiling glibc was easy, getting the game server to properly use it was more of a hassle…)
After a bit of [trying]: https://github.com/maraaaa/habitat-factorio/commits/master it works! And OMG! Running Factorio on “any” OS seems to be a breeze! Until…
Trying to run hab as a service on my home machine running SELinux… (Is it strange that my home machine is hardened more than the server running services for our Corp?)
SO seemed like a more appropriate location to post this question being that it seems to be an SELinux problem and not a Habitat problem… But after a couple weeks, “tons” of views (it’s my first SO post… and it’s gotten more than one a day, that is a ton for me! ), maybe it’s time to check the habitat forums! (I just learned about them a week ago actually…) It seems [no one else]: https://forums.habitat.sh/search?q=selinux has had the same problems… so maybe a good topic for the forum!
Anyway, to summarize:
- Followed docs and created a systemd unit file
- Able to start habitat when SELinux is disabled (not a solution!)
- Able to start habitat “manually” with
hab sup run…
- GoogleFU seems to indicate the error has to do with being linked from /usr/bin ???
- Am very rusty on SELinux, so really looking for some guidance before just wildly creating modules… (Anyone else got SELinux troubles?)
Happy to post [the errors here from the SO forum]: https://stackoverflow.com/questions/49837987/running-habitat-as-a-service-with-selinux)… but it would literally just be a copy paste of that post to here, which didn’t really seem valuable…
Anyway, even if the guidance is “go talk to the systemd folks” that will be a better lead than generated from SO!