Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Systemd service units should set User/Group #146

Open
@knorby

Description

@knorby

With the current systemd service units deployed, mesos produced logs end up with "invalid-user" in the filename, and I believe I've seen that elsewhere. USER and GROUP aren't getting set on the mesos process's environment, which causes this behavior in glogs at least. Modifying to systemd unit to something like

[Service]
[...]
User=root
Group=root

fixes the problem. I'm noticing this problem on Ubuntu 16.04, where current log file names look like "mesos-{process}.{hostname}.invalid-user.log.{level}.{timestamp}". Making this change results in the user showing up as "root".

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