sonic-buildimage/platform/pddf/i2c/service/pddf-platform-init.service
FuzailBrcm 6ed0c434b3
[pddf]: Adding pre_pddf_init script in the service file (#7834)
Why I did it
Some platforms need to run few steps before the PDDF service is actually started.

* Adding pre_pddf_init script in the service file
* Raising exception for get_target_speed() for PSU-fan in PDDF (#8129)
2022-01-02 22:28:48 -08:00

15 lines
325 B
Desktop File

[Unit]
Description=PDDF module and device initialization service
Before=pmon.service
DefaultDependencies=no
[Service]
Type=oneshot
ExecStartPre=-/usr/local/bin/pre_pddf_init.sh
ExecStart=/usr/local/bin/pddf_util.py install
ExecStop=/usr/local/bin/pddf_util.py clean
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target