Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] systemd.eclass: kill systemd_enable_service
Date: Sat, 03 Aug 2019 23:33:10
Message-Id: 20190803233301.30933-1-floppym@gentoo.org
This function creates symlinks in /lib/systemd/system, which is rarely
appropriate since it makes disabling the service difficult.

It is not used in the gentoo repository.

Signed-off-by: Mike Gilbert <floppym@g.o>
---
 eclass/systemd.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 04f277e94d64..59749e8d0f86 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -283,6 +283,7 @@ systemd_newtmpfilesd() {
 # EAPIs.
 systemd_enable_service() {
 	debug-print-function ${FUNCNAME} "${@}"
+	die "${FUNCNAME} is dead. Do not use it."
 
 	[[ ${#} -eq 2 ]] || die "Synopsis: systemd_enable_service target service"
 
-- 
2.22.0