integ/filesystem/drbd/drbd-tools/debian/deb_patches/0002-Add-drbd.service-file.patch
Dan Voiculeasa e861e7137f Add debian package for drbd-utils
CentOS version was upversioned and is very close to the Debian package.
Copied all patches. 1 needed small adjustment.

Needed to enable lintian overrides for upstream package.
Copied the drbd.service file from CentOS.

Did build drbd-utils. Did build iso.

Story: 2009101
Task: 43496
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I44d5b67deb43b2894e7c0213666d54636f39cd40
2021-10-26 11:16:57 +03:00

41 lines
953 B
Diff

From 0a471eff34696b8f1193574c205c74416618bbbf Mon Sep 17 00:00:00 2001
From: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Date: Thu, 30 Sep 2021 17:50:58 +0300
Subject: [PATCH 2/2] Add drbd.service file
Copy file from CentOS.
Use service from /lib/drbd instead of /etc/rc.d/init.d/.
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
---
debian/drbd.service | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 debian/drbd.service
diff --git a/debian/drbd.service b/debian/drbd.service
new file mode 100644
index 0000000..7624a18
--- /dev/null
+++ b/debian/drbd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Control DRBD resources.
+After=network.target sshd.service
+
+[Service]
+Type=forking
+Restart=no
+KillMode=process
+RemainAfterExit=yes
+ExecStart=/lib/drbd/drbd start
+ExecStop=/lib/drbd//drbd stop
+ExecReload=/lib/drbd/drbd reload
+TimeoutSec=5min
+
+[Install]
+WantedBy=multi-user.target
+
--
2.30.0