r-lib / ps

R package to query, list, manipulate system processes
https://ps.r-lib.org/
Other
72 stars 18 forks source link

Get name of systemd service #128

Closed vanhry closed 2 years ago

vanhry commented 2 years ago

Hello everyone! I want to be able to get status of my plumber service Is it possible to receive the name of systemd service, using some of ps functions?

gaborcsardi commented 2 years ago

I don't think so, but isn't the name always plumber or something similar?

vanhry commented 2 years ago

It's not always like plumber, but I can rename it like this, the main purpose is to be able to access the name of systemd service. As plumber is R service so I am able to filter R services rps <- ps::ps() %>% filter(name=='R'), but there are other R services too, and I want to distinguish whether or not is plumber-related service

gaborcsardi commented 2 years ago

No,sorry, ps cannot do that.