I'm currently struggling with systemd. We made a custom driver for CSI interface on iMX6, and we decided to move on systemd.
The main goal is to be notified when the driver is running and start our video application after that. I tried to modify udev rules and add:
KERNEL=="video0", SYMLINK="video0", TAG+="systemd"
and create a service for the video
[Unit]
Description=Video application service
BindsTo=dev-video0.device
After=dev-video0.device
[Service]
Type=forking
ExecStart=/usr/bin/video-app
The service never start. I don't know if I'm doing it right, but I don't know how to proceed exactly.
If you can give me some hints,
Thank you,
Pierre-Olivier
解決済! 解決策の投稿を見る。
I found a way to do that,
I added a rule for udev:
SUBSYSTEM=="video4linux", ATTR{fsl_csi_property}=="ipu1_csi1", SYMLINK+="video0", TAG+="systemd" ENV{SYSTEMD_WANTS}="video.service"
The service is started at the end of the probe.
I found a way to do that,
I added a rule for udev:
SUBSYSTEM=="video4linux", ATTR{fsl_csi_property}=="ipu1_csi1", SYMLINK+="video0", TAG+="systemd" ENV{SYSTEMD_WANTS}="video.service"
The service is started at the end of the probe.
Thanks for sharing.