Hot answers tagged


No, you cannot do that. systemd's service tracking is mainly based on cgroups, so the process cannot be considered part of mediation.service unless it's within the apropriate cgroup. (E.g. that's how user logins are broken away from sshd.service: by moving to another cgroup.) It doesn't care much about PID files, even though it does use them for additional ...


Use: User=myuser In your unit file. This is documented in man systemd.exec Also, custom files should not go in /usr/lib/systemd/system, they should go in /etc/systemd/system. The former is where packages install their files. The later is where system administrators should put their files.

Only top voted, non community-wiki answers of a minimum length are eligible