0

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.

Antoine
  • 281
  • 3
  • 8
  • 1
    Does this answer your question? [Create a directory under /var/run at boot](https://serverfault.com/questions/779634/create-a-directory-under-var-run-at-boot) – Gerald Schneider Sep 15 '22 at 06:58

0 Answers0