From e16e402a62331ccfb7da33e858ea95fefadee7ad Mon Sep 17 00:00:00 2001 From: Oskari Pirhonen Date: Sat, 23 Dec 2023 21:14:21 -0600 Subject: [PATCH] net-misc/dhcp: add OpenRC description strings Show a description of the service and the exported `configtest` command when running `rc-service dhcpd describe`. Signed-off-by: Oskari Pirhonen Closes: https://github.com/gentoo/gentoo/pull/34452 Signed-off-by: Sam James --- net-misc/dhcp/files/dhcpd.init5 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net-misc/dhcp/files/dhcpd.init5 b/net-misc/dhcp/files/dhcpd.init5 index 66b29cd3bb003..8e05625e63458 100644 --- a/net-misc/dhcp/files/dhcpd.init5 +++ b/net-misc/dhcp/files/dhcpd.init5 @@ -1,8 +1,11 @@ #!/sbin/openrc-run -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +description="ISC DHCP server" + extra_commands="configtest" +description_configtest="Test the syntax of the configuration file" : ${DHCPD_CONF:=/etc/dhcp/${SVCNAME}.conf}