Searched hist:e2ec69ad006828e8b3aeadbc009947b21aa3b4fe (Results 1 – 2 of 2) sorted by relevance
/openbmc/phosphor-pid-control/ |
H A D | phosphor-pid-control.service.in | diff e2ec69ad006828e8b3aeadbc009947b21aa3b4fe Fri Sep 30 04:09:34 CDT 2022 Potin Lai <potin.lai@quantatw.com> Add SIGHUP handling for reloading configuration
Add signal handling feature for handling the SIGHUP generated by systemd ExecReload.
Tested log: - Brfore reload root@bletchley:~# systemctl status phosphor-pid-control.service * phosphor-pid-control.service - Phosphor-Pid-Control Margin-based Fan Control Daemon Loaded: loaded (/lib/systemd/system/phosphor-pid-control.service; enabled; preset: enabled) Drop-In: /lib/systemd/system/phosphor-pid-control.service.d `-10-bletchley.conf Active: active (running) since Fri 2022-09-30 09:12:10 UTC; 1min 11s ago Main PID: 884 (swampd) CGroup: /system.slice/phosphor-pid-control.service `-884 /usr/bin/swampd
Sep 30 09:12:32 bletchley swampd[884]: PID name: fan_tachs Sep 30 09:12:32 bletchley swampd[884]: inputs: FAN0_TACH_IL, FAN0_TACH_OL, FAN1_TACH_IL, FAN1_TACH_OL, FAN2_TACH_IL, FAN2_TACH_OL, FAN3_TACH_IL, FAN3_TACH_OL, Sep 30 09:12:32 bletchley swampd[884]: PID name: inlet_Temp Sep 30 09:12:32 bletchley swampd[884]: inputs: Virtual_Inlet_Temp, Sep 30 09:12:32 bletchley swampd[884]: PID name: retimer_temp Sep 30 09:12:32 bletchley swampd[884]: inputs: MB_U19_THERM_LOCAL, Sep 30 09:12:32 bletchley swampd[884]: PID name: switch_temp Sep 30 09:12:32 bletchley swampd[884]: inputs: MB_U402_THERM_LOCAL, Sep 30 09:12:32 bletchley swampd[884]: pushing zone 1 Sep 30 09:12:32 bletchley swampd[884]: PID Zone 1 max SetPoint 37 requested by inlet_Temp FAN0_TACH_IL FAN0_TACH_OL FAN1_TACH_IL FAN1_TACH_OL FAN2_TACH_IL FAN2_TACH_OL FAN3_TACH_IL FAN3_TACH_OL
- After reload called root@bletchley:~# journalctl -u phosphor-pid-control.service | grep -i reload Sep 30 09:13:46 bletchley systemd[1]: Reloading Phosphor-Pid-Control Margin-based Fan Control Daemon... Sep 30 09:13:46 bletchley swampd[884]: reloading configuration Sep 30 09:13:46 bletchley systemd[1]: Reloaded Phosphor-Pid-Control Margin-based Fan Control Daemon. root@bletchley:~# root@bletchley:~# systemctl status phosphor-pid-control * phosphor-pid-control.service - Phosphor-Pid-Control Margin-based Fan Control Daemon Loaded: loaded (/lib/systemd/system/phosphor-pid-control.service; enabled; preset: enabled) Drop-In: /lib/systemd/system/phosphor-pid-control.service.d `-10-bletchley.conf Active: active (running) since Fri 2022-09-30 09:12:10 UTC; 2min 35s ago Process: 1353 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Main PID: 884 (swampd) CGroup: /system.slice/phosphor-pid-control.service `-884 /usr/bin/swampd
Sep 30 09:13:56 bletchley swampd[884]: PID name: fan_tachs Sep 30 09:13:56 bletchley swampd[884]: inputs: FAN0_TACH_IL, FAN0_TACH_OL, FAN1_TACH_IL, FAN1_TACH_OL, FAN2_TACH_IL, FAN2_TACH_OL, FAN3_TACH_IL, FAN3_TACH_OL, Sep 30 09:13:56 bletchley swampd[884]: PID name: inlet_Temp Sep 30 09:13:56 bletchley swampd[884]: inputs: Virtual_Inlet_Temp, Sep 30 09:13:56 bletchley swampd[884]: PID name: retimer_temp Sep 30 09:13:56 bletchley swampd[884]: inputs: MB_U19_THERM_LOCAL, Sep 30 09:13:56 bletchley swampd[884]: PID name: switch_temp Sep 30 09:13:56 bletchley swampd[884]: inputs: MB_U402_THERM_LOCAL, Sep 30 09:13:56 bletchley swampd[884]: pushing zone 1 Sep 30 09:13:56 bletchley swampd[884]: PID Zone 1 max SetPoint 37 requested by inlet_Temp FAN0_TACH_IL FAN0_TACH_OL FAN1_TACH_IL FAN1_TACH_OL FAN2_TACH_IL FAN2_TACH_OL FAN3_TACH_IL FAN3_TACH_OL
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Idea1ede908fe4a2da3018cc0624c78ac7e0530eb
|
H A D | main.cpp | diff e2ec69ad006828e8b3aeadbc009947b21aa3b4fe Fri Sep 30 04:09:34 CDT 2022 Potin Lai <potin.lai@quantatw.com> Add SIGHUP handling for reloading configuration
Add signal handling feature for handling the SIGHUP generated by systemd ExecReload.
Tested log: - Brfore reload root@bletchley:~# systemctl status phosphor-pid-control.service * phosphor-pid-control.service - Phosphor-Pid-Control Margin-based Fan Control Daemon Loaded: loaded (/lib/systemd/system/phosphor-pid-control.service; enabled; preset: enabled) Drop-In: /lib/systemd/system/phosphor-pid-control.service.d `-10-bletchley.conf Active: active (running) since Fri 2022-09-30 09:12:10 UTC; 1min 11s ago Main PID: 884 (swampd) CGroup: /system.slice/phosphor-pid-control.service `-884 /usr/bin/swampd
Sep 30 09:12:32 bletchley swampd[884]: PID name: fan_tachs Sep 30 09:12:32 bletchley swampd[884]: inputs: FAN0_TACH_IL, FAN0_TACH_OL, FAN1_TACH_IL, FAN1_TACH_OL, FAN2_TACH_IL, FAN2_TACH_OL, FAN3_TACH_IL, FAN3_TACH_OL, Sep 30 09:12:32 bletchley swampd[884]: PID name: inlet_Temp Sep 30 09:12:32 bletchley swampd[884]: inputs: Virtual_Inlet_Temp, Sep 30 09:12:32 bletchley swampd[884]: PID name: retimer_temp Sep 30 09:12:32 bletchley swampd[884]: inputs: MB_U19_THERM_LOCAL, Sep 30 09:12:32 bletchley swampd[884]: PID name: switch_temp Sep 30 09:12:32 bletchley swampd[884]: inputs: MB_U402_THERM_LOCAL, Sep 30 09:12:32 bletchley swampd[884]: pushing zone 1 Sep 30 09:12:32 bletchley swampd[884]: PID Zone 1 max SetPoint 37 requested by inlet_Temp FAN0_TACH_IL FAN0_TACH_OL FAN1_TACH_IL FAN1_TACH_OL FAN2_TACH_IL FAN2_TACH_OL FAN3_TACH_IL FAN3_TACH_OL
- After reload called root@bletchley:~# journalctl -u phosphor-pid-control.service | grep -i reload Sep 30 09:13:46 bletchley systemd[1]: Reloading Phosphor-Pid-Control Margin-based Fan Control Daemon... Sep 30 09:13:46 bletchley swampd[884]: reloading configuration Sep 30 09:13:46 bletchley systemd[1]: Reloaded Phosphor-Pid-Control Margin-based Fan Control Daemon. root@bletchley:~# root@bletchley:~# systemctl status phosphor-pid-control * phosphor-pid-control.service - Phosphor-Pid-Control Margin-based Fan Control Daemon Loaded: loaded (/lib/systemd/system/phosphor-pid-control.service; enabled; preset: enabled) Drop-In: /lib/systemd/system/phosphor-pid-control.service.d `-10-bletchley.conf Active: active (running) since Fri 2022-09-30 09:12:10 UTC; 2min 35s ago Process: 1353 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS) Main PID: 884 (swampd) CGroup: /system.slice/phosphor-pid-control.service `-884 /usr/bin/swampd
Sep 30 09:13:56 bletchley swampd[884]: PID name: fan_tachs Sep 30 09:13:56 bletchley swampd[884]: inputs: FAN0_TACH_IL, FAN0_TACH_OL, FAN1_TACH_IL, FAN1_TACH_OL, FAN2_TACH_IL, FAN2_TACH_OL, FAN3_TACH_IL, FAN3_TACH_OL, Sep 30 09:13:56 bletchley swampd[884]: PID name: inlet_Temp Sep 30 09:13:56 bletchley swampd[884]: inputs: Virtual_Inlet_Temp, Sep 30 09:13:56 bletchley swampd[884]: PID name: retimer_temp Sep 30 09:13:56 bletchley swampd[884]: inputs: MB_U19_THERM_LOCAL, Sep 30 09:13:56 bletchley swampd[884]: PID name: switch_temp Sep 30 09:13:56 bletchley swampd[884]: inputs: MB_U402_THERM_LOCAL, Sep 30 09:13:56 bletchley swampd[884]: pushing zone 1 Sep 30 09:13:56 bletchley swampd[884]: PID Zone 1 max SetPoint 37 requested by inlet_Temp FAN0_TACH_IL FAN0_TACH_OL FAN1_TACH_IL FAN1_TACH_OL FAN2_TACH_IL FAN2_TACH_OL FAN3_TACH_IL FAN3_TACH_OL
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Idea1ede908fe4a2da3018cc0624c78ac7e0530eb
|