Hi
I created a systemd service for boot up and enabled it during create the image.
After build and flashed the image into eMMC and boot up, the app-start.sh script invoked most of time, but NOT every time. I checked the service status, it is enabled. I don’t know why the service does not invoked every boot up.
This is my service for boot up:
[Unit]
Description=my application
After=multi-user.target
[Service]
WorkingDirectory=/home/ion/Application
ExecStart=/home/ion/Application/app-start.sh boot
User=ion
[Install]
WantedBy=multi-user.target
This is code to enable the service during create the image using ansible
- name: Enable services
systemd:
name: "{{ item }}"
enabled: yes
loop:
- ssh
- systemd-networkd
- network-manager
- ion-application
How can fix it?
Thanks
CX