There are other options:
- you can run an
ExecStartPreas root even with DynamicUser like this:ExecStartPre = "!/some/binary/somewhere"; - alternatively, create a separate
foo-config.servicethat runs as root which is responsible for doing all the setup.