[1/1] package/drbd-utils: enable drbd.service
diff mbox series

Message ID 20191101031827.17006-1-james.hilliard1@gmail.com
State New
Headers show
Series
  • [1/1] package/drbd-utils: enable drbd.service
Related show

Commit Message

James Hilliard Nov. 1, 2019, 3:18 a.m. UTC
This is normally enabled by systemctl preset-all.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/drbd-utils/drbd-utils.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/package/drbd-utils/drbd-utils.mk b/package/drbd-utils/drbd-utils.mk
index bb28729b40..89c68e2435 100644
--- a/package/drbd-utils/drbd-utils.mk
+++ b/package/drbd-utils/drbd-utils.mk
@@ -26,4 +26,10 @@  else
 DRBD_UTILS_CONF_OPTS += --with-udev=no
 endif
 
+define DRBD_UTILS_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+	ln -sf ../../../../lib/systemd/system/drbd.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/drbd.service
+endef
+
 $(eval $(autotools-package))