trying to run local hhd install for dev purposes, but systemd service is failing
Trying to run a custom systemd service for hhd so that i can do localhost dev work, and i can get the local install to work if i run hhd manually, but the systemd service itself fails.
any ideas on where the problem is?
9 Replies
could be selinux
try
sudo setenforce 0
if that fixes it, moving your executable to /usr/local/bin and making sure it's marked as executable w/ selinux labeling should be enoughnice, that worked. sounds like I need to add it via rpm-ostree somehow then?
since usroverlay isn't permanent
Usr local is writeable
oh ok, nice. i thought all of /usr wasn't writable
and is marking it as executable with selinux just a chmod +x? or is there more to it?
Solution
chcon -u system_u -r object_r --type=bin_t path
I promise that works and isn't just something out of a Lovecraft book
clearly not just a chmod +x then. thanks, i'll try it out and see if it works. i'm assuming the
setenforce 0
doesn't persist across reboots
feels awkward making a venv in /usr/bin/local
, but I can confirm that it works. Thanks!~/.local/bin would work too
fyi
just need the same selinux command
oh nice, that'd be much better. let me do that, thanks!