Hi All,
I’m checking the below relevance condition from Ubuntu OS /opt/BESClient/bin/qna, and I’m getting two different results from the root account and the normal user.
Result from the normal user terminal:
Q: names of processes whose (name of it contains “landscape”)
A: landscape-clien
A: landscape-broke
A: landscape-monit
A: landscape-manag
T: 17901
Result from root terminal:
Q: names of processes whose (name of it contains “landscape”)
T: 14832
systemctl result:
sudo systemctl status landscape-client.service
● landscape-client.service - Landscape client daemons
Loaded: loaded (/lib/systemd/system/landscape-client.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2023-10-24 16:24:05 IST; 9s ago
Docs: man:landscape-client(1)
man:landscape-config(1)
Main PID: 175910 (landscape-clien)
Tasks: 5 (limit: 18289)
Memory: 268.8M
CGroup: /system.slice/landscape-client.service
├─175910 /usr/bin/python3 /usr/bin/landscape-client
├─175912 /usr/bin/python3 /usr/bin/landscape-broker --ignore-sigint
├─175913 /usr/bin/python3 /usr/bin/landscape-monitor --ignore-sigint
├─175914 /usr/bin/python3 /usr/bin/landscape-manager --ignore-sigint
└─175922 /usr/bin/python3 /usr/bin/landscape-package-reporter --quiet
Oct 24 16:24:05 XXXXXXXXXXXXXXX systemd[1]: Started Landscape client daemons.
Oct 24 16:24:06 XXXXXXXXXXXXXXX landscape-client[175910]: 2023-10-24 16:24:06,377 INFO [MainThread] Watchdog watching for daemons.
I cannot use the “exist service” condition in non-windows OS for other applications than Besclient. Kindly suggest to me how to accomplish the service/process running check for my deployment.