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

Systemd service units should set User/Group #146

Open
knorby opened this issue Jun 27, 2017 · 0 comments
Open

Systemd service units should set User/Group #146

knorby opened this issue Jun 27, 2017 · 0 comments

Comments

@knorby
Copy link

knorby commented Jun 27, 2017

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".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant