nixpkgs/upstart-jobs/dhcpd.nix
Eelco Dolstra 8452dd3cd0 * Upstart job for dhcpd.
svn path=/nixos/trunk/; revision=8311
2007-03-16 16:41:38 +00:00

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
";
}