Systemd unit file: Can/Should ExecStart and ExecStop run a script?

Jeffrey Ollie jeff at
Thu Nov 17 21:41:16 UTC 2011

On Thu, Nov 17, 2011 at 3:34 PM, Richard Shaw <hobbes1069 at> wrote:
> Ok, reviving this conversation!
> I ran into the issue that user "mythtv" can not create the file
> "/var/run/". I see other services that have their pid
> file owned by their own user...

systemd doesn't really need a PID file to manage the service, can
mythtv be told not to create it?  If it insists on creating it see if
you can move it to a subdirectory of /run (like /run/mythtv) that is
owned by mythtv.

> Also, user "mythtv" can't write to the log file in /var/log/mythtv/

Change the ownership of /var/log/mythtv.

Jeff Ollie

More information about the devel mailing list