On Tue, Oct 25, 2022 at 9:29 AM Sourabh Hegde <[email protected]> wrote:
>
> Hello,
>
> This might not be directly related to Yocto.
>
> I have a systemd .path unit file that restarts the system service if the file 
> changes. But, the path ubit file needs to be enabled once to make this work. 
> So, my question is when I flash new image on the device will the path unit 
> file enabled automatically by systemctl? Or should I do this manually using 
> "systemctl enable --now *.path" ? Is there any way to make this work using 
> Yocto recipe?
>
> The custome systemd service files are installed in dir 
> "${D}${systemd_unitdir}/system/".
>
> Thanks in advance
> 
>

You should add you file to your bb recipe SYSTEMD_SERVICE:${PN} = "file.path"

https://docs.yoctoproject.org/current/ref-manual/classes.html?highlight=systemd_service

-- 
Best Regards,
Sergei Nikulov
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58407): https://lists.yoctoproject.org/g/yocto/message/58407
Mute This Topic: https://lists.yoctoproject.org/mt/94553177/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to