Difference between revisions of "Dhcdbd"
From CBLFS
Jump to navigationJump to search (→Dependencies) |
|||
Line 58: | Line 58: | ||
make install | make install | ||
+ | |||
+ | == Configuring == | ||
+ | |||
+ | === Bootscript === | ||
+ | |||
+ | Create the bootscript: | ||
+ | |||
+ | cat > /etc/rc.d/init.d/dhcdbd << "EOF" | ||
+ | #!/bin/sh | ||
+ | # Begin $rc_base/init.d/dhcdbd | ||
+ | |||
+ | . /etc/sysconfig/rc | ||
+ | . ${rc_functions} | ||
+ | |||
+ | case "${1}" in | ||
+ | start) | ||
+ | boot_mesg "Starting dhcdbd..." | ||
+ | loadproc /sbin/dhcdbd --system | ||
+ | ;; | ||
+ | |||
+ | stop) | ||
+ | boot_mesg "Stopping dhcdbd..." | ||
+ | killproc /sbin/dhcdbd | ||
+ | ;; | ||
+ | |||
+ | restart) | ||
+ | ${0} stop | ||
+ | sleep 1 | ||
+ | ${0} start | ||
+ | ;; | ||
+ | |||
+ | status) | ||
+ | statusproc /sbin/dhcdbd | ||
+ | ;; | ||
+ | |||
+ | *) | ||
+ | echo "Usage: ${0} {start|stop|restart|status}" | ||
+ | exit 1 | ||
+ | ;; | ||
+ | esac | ||
+ | |||
+ | # End $rc_base/init.d/dhcdbd | ||
+ | EOF | ||
+ | chmod -v 754 /etc/rc.d/init.d/dhcdbd | ||
+ | |||
+ | Link it into the runlevels: | ||
+ | |||
+ | for link in /etc/rc.d/rc{{0,1,6}.d/K25,{2,3,4,5}.d/S25}dhcdbd; do | ||
+ | ln -sfv ../init.d/dhcdbd $link; | ||
+ | done |
Revision as of 16:11, 27 March 2007
Download Source: | http://people.redhat.com/dcantrel/dhcdbd/dhcdbd-2.6.tar.bz2 |
---|
Contents
Introduction to Dhcdbd
Dhcdbd provides D-BUS control of the ISC dhclient provided by DHCP.
Dependencies
Required
Non-Multilib
Compile the package:
make
Install the package
make install
Multilib
32Bit
Compile the package:
make CC="gcc ${BUILD32}"
Install the package
make install
N32
Compile the package:
make CC="gcc ${BUILDN32}"
Install the package
make install
64Bit
Compile the package:
make CC="gcc ${BUILD64}"
Install the package
make install
Configuring
Bootscript
Create the bootscript:
cat > /etc/rc.d/init.d/dhcdbd << "EOF" #!/bin/sh # Begin $rc_base/init.d/dhcdbd . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Starting dhcdbd..." loadproc /sbin/dhcdbd --system ;; stop) boot_mesg "Stopping dhcdbd..." killproc /sbin/dhcdbd ;; restart) ${0} stop sleep 1 ${0} start ;; status) statusproc /sbin/dhcdbd ;; *) echo "Usage: ${0} {start|stop|restart|status}" exit 1 ;; esac # End $rc_base/init.d/dhcdbd EOF chmod -v 754 /etc/rc.d/init.d/dhcdbd
Link it into the runlevels:
for link in /etc/rc.d/rc{{0,1,6}.d/K25,{2,3,4,5}.d/S25}dhcdbd; do ln -sfv ../init.d/dhcdbd $link; done