Skip to content

Service unit file in lmster docs doesn't account for SELinux policy #199

@vincentbavitz

Description

@vincentbavitz

The docs for setting up lmster in a headless environment with systemd don't account for the fact that SELinux enforced environments block the loading of executables from the /home directory from systemd.

This leads to the following error when running the service file.

> journalctl -u lmstudio.service -f
(lms)[159023]: lmstudio.service: Failed at step EXEC spawning /home/USER/.lmstudio/bin/lms: Permission denied
lmstudio.service: Failed at step EXEC spawning /home/USER/.lmstudio/bin/lms: Permission denied

Please add a note in the documentation to optionally override this policy for the lms directory thusly;

sudo chcon -R -t bin_t /home/USER/.lmstudio/bin

This allows the lms binary to run from the service file without loosening SELinux polcies system-wide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions