diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-12-26 12:58:50 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-12-26 12:58:50 +0000 |
commit | afa717a8eb2659adbb57a49569d7234786b5b791 (patch) | |
tree | 39c96061d3f78bb0594e35a07534d4a4dd4d3bde /net-misc/dhcp/files | |
parent | lower CHECKREQS_DISK_BUILD wrt #495242 (diff) | |
download | gentoo-2-afa717a8eb2659adbb57a49569d7234786b5b791.tar.gz gentoo-2-afa717a8eb2659adbb57a49569d7234786b5b791.tar.bz2 gentoo-2-afa717a8eb2659adbb57a49569d7234786b5b791.zip |
Add unit file (#490800)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-misc/dhcp/files')
-rw-r--r-- | net-misc/dhcp/files/dhcpd.tmpfiles | 2 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcpd4.service | 11 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcpd6.service | 11 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay4.service | 10 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay4.service.conf | 3 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay6.service | 10 | ||||
-rw-r--r-- | net-misc/dhcp/files/dhcrelay6.service.conf | 6 |
7 files changed, 53 insertions, 0 deletions
diff --git a/net-misc/dhcp/files/dhcpd.tmpfiles b/net-misc/dhcp/files/dhcpd.tmpfiles new file mode 100644 index 000000000000..ee2f4deeaadf --- /dev/null +++ b/net-misc/dhcp/files/dhcpd.tmpfiles @@ -0,0 +1,2 @@ +d /var/lib/dhcp/ 0755 dhcp dhcp +f /var/lib/dhcp/dhcpd.leases 0644 dhcp dhcp
\ No newline at end of file diff --git a/net-misc/dhcp/files/dhcpd4.service b/net-misc/dhcp/files/dhcpd4.service new file mode 100644 index 000000000000..b064bd9b57df --- /dev/null +++ b/net-misc/dhcp/files/dhcpd4.service @@ -0,0 +1,11 @@ +[Unit] +Description=DHCPv4 Server Daemon +Documentation=man:dhcpd(8) man:dhcpd.conf(5) +After=network.target +After=time-sync.target + +[Service] +ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcp -group dhcp --no-pid + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/dhcp/files/dhcpd6.service b/net-misc/dhcp/files/dhcpd6.service new file mode 100644 index 000000000000..603cacd8eb89 --- /dev/null +++ b/net-misc/dhcp/files/dhcpd6.service @@ -0,0 +1,11 @@ +[Unit] +Description=DHCPv6 Server Daemon +Documentation=man:dhcpd(8) man:dhcpd.conf(5) +After=network.target +After=time-sync.target + +[Service] +ExecStart=/usr/sbin/dhcpd -f -s -6 -cf /etc/dhcp/dhcpd.conf -user dhcp -group dhcp --no-pid + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/dhcp/files/dhcrelay4.service b/net-misc/dhcp/files/dhcrelay4.service new file mode 100644 index 000000000000..09e835d43357 --- /dev/null +++ b/net-misc/dhcp/files/dhcrelay4.service @@ -0,0 +1,10 @@ +[Unit] +Description=DHCP Relay Agent Daemon +Documentation=man:dhcrelay(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/dhcrelay -d --no-pid $DHCRELAY_SERVERS + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/dhcp/files/dhcrelay4.service.conf b/net-misc/dhcp/files/dhcrelay4.service.conf new file mode 100644 index 000000000000..1a0465b767d6 --- /dev/null +++ b/net-misc/dhcp/files/dhcrelay4.service.conf @@ -0,0 +1,3 @@ +# Space separated list of IPs to forward BOOTP/DHCP packets to. +[Service] +Environment="DHCRELAY_SERVERS="
\ No newline at end of file diff --git a/net-misc/dhcp/files/dhcrelay6.service b/net-misc/dhcp/files/dhcrelay6.service new file mode 100644 index 000000000000..1e5e49888d61 --- /dev/null +++ b/net-misc/dhcp/files/dhcrelay6.service @@ -0,0 +1,10 @@ +[Unit] +Description=DHCP Relay Agent Daemon +Documentation=man:dhcrelay(8) +After=network.target + +[Service] +ExecStart=/usr/sbin/dhcrelay -d --no-pid -6 -l $lower-iface -u $upper-iface $DHCRELAY_SERVERS + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/dhcp/files/dhcrelay6.service.conf b/net-misc/dhcp/files/dhcrelay6.service.conf new file mode 100644 index 000000000000..ae293ab4ff28 --- /dev/null +++ b/net-misc/dhcp/files/dhcrelay6.service.conf @@ -0,0 +1,6 @@ +[Service] +# Space separated list of IPs to forward BOOTP/DHCP packets to +Environment="DHCRELAY_SERVERS=" +# Make sure you specify the lower (-l)/upper (-u) interfaces +Environment="lower-iface=" +Environment="upper-iface=" |