8452dd3cd0
svn path=/nixos/trunk/; revision=8311
18 lines
264 B
Nix
18 lines
264 B
Nix
{dhcp, configFile, interfaces}:
|
|
|
|
{
|
|
name = "dhcpd";
|
|
|
|
job = "
|
|
description \"DHCP server\"
|
|
|
|
start on network-interfaces/started
|
|
stop on network-interfaces/stop
|
|
|
|
script
|
|
exec ${dhcp}/sbin/dhcpd -f -cf ${configFile} ${toString interfaces}
|
|
end script
|
|
";
|
|
|
|
}
|