I want the main command of the service (ExecStart
) to run in a WorkingDirectory
that may not exist on the first run of the service. I added a mkdir
in the ExecStartPre
, but it seems the mkdir itself is started in the same working directory that doesn't exists and fails. Also tried playing with the +
and -
flags, with no success so far.
Found a duplicate here, but no answer.