diff options
author | jmbills <jason.m.bills@intel.com> | 2021-08-03 01:45:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 01:45:08 +0300 |
commit | 10ad77d5bc86709d8ff7f95e7040e39f1c153903 (patch) | |
tree | 307cedb87f4c0a329740c55ac364ed489d1d8fc2 /meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in | |
parent | c6b1c6ba7a01b7987d65d61c262c44c320193108 (diff) | |
parent | 67327ddc580cb9a85219a534844832a1682780d4 (diff) | |
download | openbmc-10ad77d5bc86709d8ff7f95e7040e39f1c153903.tar.xz |
Update
Diffstat (limited to 'meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in')
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in new file mode 100644 index 000000000..99f0400bf --- /dev/null +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in @@ -0,0 +1,17 @@ +[Unit] +Description=Set NICEnabled property to true +Wants=xyz.openbmc_project.Network.service +After=xyz.openbmc_project.Network.service +Wants=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +After=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +StartLimitIntervalSec=10 +StartLimitBurst=3 + +[Service] +Type=oneshot +ExecStart=busctl set-property xyz.openbmc_project.Network /xyz/openbmc_project/network/@NCSI_IF@ xyz.openbmc_project.Network.EthernetInterface NICEnabled b true +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target |