How to change the soft link in target.requires or target.wants directory

Lei YU mine260309 at gmail.com
Thu Dec 26 18:36:37 AEDT 2019


On Thu, Dec 26, 2019 at 3:18 PM zhang_cy1989 <zhang_cy1989 at 163.com> wrote:
>
> Dear All
>    The target.requires or target.wants contains some soft link.
>    Ex:
>         /lib/systemd/system/obmc-host-startmin at 0.target.requires
>                    lrwxrwxrwx    1 root     root            31 Nov 29  2019 obmc-chassis-poweron at 0.target -> ../obmc-chassis-poweron at .target
>                    lrwxrwxrwx    1 root     root            25 Nov 28 09:51 op-occ-enable at 0.service -> ../op-occ-enable at .service
>                    lrwxrwxrwx    1 root     root            22 Nov 28 09:57 start_host at 0.service -> ../start_host at .service
>
>     Now, I want to add or delete soft link:op-occ-enable at 0.service
>     I can use "rm -rf ./op-occ-enable at 0.service" to achieve the goal.
>     But,I'm not exactly sure this is formal operation. And I'm afraid this will be side effect.
>
>     Are there other tools or formal methods to do this?

These links are expected to be managed by systemd.
You could disable or mask the services by `systemctl [disable|mask]
<service>`. If you need them later, just enable or unmask them.


More information about the openbmc mailing list