dhcdbd is designed to be started as a D-Bus service from a service description file, by default /usr/share/dbus-1/services/dhcdbd.service;
hence the default bus it will connect to is the "STARTER" bus, and it must be installed setuid to root.
use system bus
use session bus
do not fork / daemonize: stay in foreground
set connection destination - default: 'com.redhat.dhcp'
set object path prefix - default: '/com/redhat/dhcp'
set interface prefix - default: 'com.redhat.dhcp'
Here are some examples using dbus-send to contact dhcdbd:
/usr/bin/dbus-send --dest=com.redhat.dhcp --type=method_call \
--print-reply --reply-timeout=20000 \
com.redhat.dhcp.up uint32:7 uint32:2
Brings up interface eth0, telling dhclient-script not to modify resolv.conf,
perform ifconfigs, or modify routes, but TO configure ntp.conf, ntp/step-tickers
When this interface is brought down, the lease is to be released.
This manual page was written by Riccardo Setti <firstname.lastname@example.org>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.