This can be done using generic Linux systemd tool.
Nothing specific to STM32MP1.
Olivier
Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.