Revision Date Author Comments
# ea0c9bb8 16-Mar-2023 Sui Chen <suichen@google.com>

Add "Restart=always" to the systemd unit file

The health-monitor daemon is not one-shot and should restart when it
gets terminated, so adding "Restart=always" to the systemd unit file.

Tested:
Befo

Add "Restart=always" to the systemd unit file

The health-monitor daemon is not one-shot and should restart when it
gets terminated, so adding "Restart=always" to the systemd unit file.

Tested:
Before this change:
root@bmc:~# pidof health-monitor
310
root@bmc:~# kill -9 310
root@bmc:~# pidof health-monitor
root@bmc:~# # (Does not restart)

After this change:
root@bmc:~# pidof health-monitor
12839
root@bmc:~# kill -9 12839
root@bmc:~# pidof health-monitor
12904

Signed-off-By: Sui Chen <suichen@google.com>
Change-Id: I7a2402bdeb2de369cbaac1dd7c698812948a7003

show more ...


# e279530e 15-Jul-2020 Vijay Khemka <vijaykhemka@fb.com>

Basic initial implementation

This is a base implementation which does following
1. create a daemon,
2. parse config file and create config object
3. create utilization sensor for given config option

Basic initial implementation

This is a base implementation which does following
1. create a daemon,
2. parse config file and create config object
3. create utilization sensor for given config options.

It currently support CPU and memory config only but it can be extended
for other feature as well. Reading and updating sensor data will be in
follow up patch.

Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Change-Id: If52cfd3ff879d0d121836bf37e17e2cc63fa2a38

show more ...