LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2015, 04:13 AM   #1
Allexandra05
LQ Newbie
 
Registered: Feb 2015
Posts: 8

Rep: Reputation: Disabled
Getting started with D-Bus using C++ and systemd


I'm trying to get up & running with systemd dbus on my Linux desktop machine. What is a good place to start ? Is there an exhaustive documentation of systemd dbus API ? My first goal is to enable simple communication between two processes I created.

I am aware of: http://www.freedesktop.org/wiki/Software/systemd/dbus/
 
Old 03-06-2015, 04:40 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Your dbus implementation is likely to be heavily influenced by the Linux distribution you're using so without that information it's probably not productive to speculate.
Here's one thing you can try, open a terminal, make sure your in a bash shell ("echo $SHELL" normally answers that question), if your not, just type in "/bin/bash " and hit enter, you'll probably see the prompt switch over, if your unsure, try the "echo $SHELL" again.
Once you're in a bash shell, just type in dbus and hit tab ( a couple of times, real hard is my favored protocol).
You'll see all the distro specific tools relating to dbus laid out as command options.
Start working your way through the list typing in "man <first option>", read the manual page. Then "man <second option>" read the manual page.
In the manual pages (often near the bottom of the page) you will normally see references to the underlying libraries or atomic system calls. That's always been a productive place to start for me.

Last edited by dijetlo; 03-06-2015 at 04:42 PM.
 
  


Reply

Tags
c++, dbus, ipc, systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "systemd: Started Session ### of user root" in /var/log/messages thealmightyos Linux - Security 4 03-22-2017 04:29 PM
LXer: Testing Started for Linux Mint Debian Edition, Systemd Implementation Not Decided Yet LXer Syndicated Linux News 0 02-24-2015 04:50 PM
LXer: "Fork Debian" Project Started In Order to Put Pressure on Debian Community and Systemd Adoptio LXer Syndicated Linux News 8 10-22-2014 02:02 AM
How to pass options to service started with systemd? PelleP Linux - Software 3 10-14-2014 03:45 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration