I have a .service for a process that I do not want to start at boot time, but call it somehow from another already running application at a given time.
Another option is to place the D-Bus (I use glib dbus in my applications) in the file / usr / share / dbus -1 / services and somehow call it from my application. In addition, I am also unable to do this.
Say my dbus service file from /usr/share/dbus-1/services is com.callThis.service and my main service file from /lib/systemd/system is com.startThis.service
If I run a simple introspect from the command line:
/home/root
the D-Bus service file will be called and it will launch what is in Exec (com.starThis). The problem is that I want to achieve this from C / C ++ code using D-Bus glib.
Cumatru
source share