2021-10-18 08:54 AM
Hello,
I am working with STM32MP157 device based on OpenStlinux. Everything is working fine on the main processor and the cortex M4 MCU. Now I am trying to create a systemd service to launch the M4 firmware with systemctl commands from the user space in the linux, but with no success. Here are contents of my .service file:
[Unit]
Description= Cortex M4 Firmware Programe
[Service]
Type=simple
ExecStart=/lib/firmware/fw_cortex_m4.sh 'start'
ExecStop=/lib/firmware/fw_cortex_m4.sh 'stop'
ExecReload=/lib/firmware/fw_cortex_m4.sh 'start'
[Install]
WantedBy=multi-user.target
Please note that I can start/stop the firmware by the script fw_cortex_m4.sh. The systemd service lauche does not throw any error but the firmware does not run. I would appreciate any help to make it work.
Thanks
Solved! Go to Solution.
2021-10-19 06:17 AM
I found a way out, by adding RemainAfterExit=yes under [Service] it works.
2021-10-19 06:17 AM
I found a way out, by adding RemainAfterExit=yes under [Service] it works.