Module: check_mk
Branch: master
Commit: 8a2a53bdb19decc23d1680d9c23b5eb3ee530d47
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8a2a53bdb19dec…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 25 11:27:18 2018 +0200
6032 FIX Debian/Ubuntu: Disable possible duplicate startup on systemd based systems
Change-Id: I58497a92bbe5fb61aec55ee3723b0d1db48bc93f
---
.werks/6032 | 11 +++++++++++
omd/debian/postinst.in | 7 ++-----
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/.werks/6032 b/.werks/6032
new file mode 100644
index 0000000..9260974
--- /dev/null
+++ b/.werks/6032
@@ -0,0 +1,11 @@
+Title: Debian/Ubuntu: Disable possible duplicate startup on systemd based systems
+Level: 1
+Component: omd
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1524648393
+
+
diff --git a/omd/debian/postinst.in b/omd/debian/postinst.in
index a1fd761..50a7da5 100755
--- a/omd/debian/postinst.in
+++ b/omd/debian/postinst.in
@@ -105,11 +105,8 @@ case "$1" in
if test -d /usr/lib/systemd && dpkg -S /sbin/init 2>/dev/null | grep
^systemd >/dev/null; then
echo "Installing systemd service: omd.init"
- # Disable startup of eventually existing SysV scripts
- if test -e $DEFAULT ; then
- echo "Disabling startup through old SysV (/etc/init.d/omd*)
scripts"
- echo "AUTOSTART=0" > $DEFAULT
- fi
+ echo "Disabling startup through SysV (/etc/init.d/*) scripts"
+ echo "AUTOSTART=0" > $DEFAULT
echo "Activating startup during system boot"
cp /omd/versions/default/share/omd/omd.service /etc/systemd/system/omd.service