I want to execute a script before starting a service every time the service is started.
I know that I can use ExecStartPre
inside the service definition file, but I wonder if it's possible to achieve without editing a file which comes from the service's package.
The script is a simple command which exits when it's done, it creates files which are used by the main service (it fetches TLS certificates and keys from secure storage).