DDC(8)

NAME
ddc - DHCP Daemon Control

SYNOPSIS
ddc [command]

DESCRIPTION
This command allows the system administrator to control the operation of the DHCP daemon. If no command is given, ddc will give an overview of all possible commands.

Commands are:

start
    Checks if the DHCP daemon is running, if not it will start it.

stop
    Checks if the DHCP daemon is running, if so it will stop it.

restart
    Checks if the DHCP daemon is running, if so it will stop it. Then it starts the DHCP daemon.

configcheck
    Checks if the configuration is parsed correctly, does not start nor stop the DHCP daemon.

running
    Check if the DHCP daemon is running, does not start or stop it.

RETURN VALUES
All commands return 0 if everything went fine, 1 otherwise.

NOTES
For some commands (start, stop and restart) you need privileged access. The non-privileged commands (running and configcheck) still require read-access to the pid-file and the configuration-files.

SETUP
Before starting the program, please make sure that the global variables are filled in correctly. Not having looked at them may result in unexpected behaviour.

FILES
/usr/local/sbin/dhcpd
    Executable of the DHCPD.
/var/run/dhcpd.pid
    Process id of the DHCP daemon.
/var/db/dhcpd.leases
    DHCPD client lease database
/usr/local/etc/dhcpd.conf
    Configuration file of the DHCP daemon.

AUTHOR
Edwin Groothuis, edwin@mavetju.org (http://www.mavetju.org)

SEE ALSO
dhcpd(8)