Open AliSawari opened 2 years ago
I tried to connect to the bus and run commands but with each time trying to connect to systemd, the program runs into infinite loop.
const dbus = require("dbus"); const someBus = dbus.getBus('system'); someBus.getInterface('org.freedesktop.systemd1', '/org/freedesktop/systemd1', (err, interface) => { if (err) throw new Error(err) console.log(interface) })
.getInterface expects 4 arguments, you're missing the interface value
I tried to connect to the bus and run commands but with each time trying to connect to systemd, the program runs into infinite loop.