I am running a python script which serves as a watchdog for a dbus service also written in python. The watchdog script should kill the dbus service when certain criteria exist - this would result in the service being restartet by the supervise.
With VenusOS v2.60 running on the Raspi 3B, I was using this python line to kill the dbus service:
os.system("kill $(pgrep -f 'python /data/dbus-myservice/dbus-myservice.py')")
Now, after the update to VenusOS v2.66, I notice that this command does not work anymore.
What has changed?
What is he recommended way to kill a dbus service from within another python script?