sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.65k stars 300 forks source link

Include Service Last updated Time in si.services() #886

Open narmatha291289 opened 5 months ago

narmatha291289 commented 5 months ago

Is your feature request related to a problem? Please describe.

I'm currently using si.services() from the systeminformation library to gather information about services on my system. However, I've noticed that the library doesn't provide information about the Last updated time of services, which is crucial for my use case.

Describe the solution you'd like

The systemctl show -p ActiveEnterTimestamp -p ActiveExitTimestamp command can be employed to obtain the last updated time of a specific service. Integrating this command into the si.services() output will enhance the library's information by including the Last Updated Time for each service.

Additional context

This feature is important for monitoring and analyzing the performance of services over time. Knowing the last updated time of a service helps in identifying patterns and troubleshooting issues more effectively.

parthiganesh commented 5 months ago

@sebhildebrandt +1