Skip to contentSkip to conversation

corosync: update to 1.4.8

PATCH New [email protected] 1 participant 1 message Aug 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 corosync: update to 1.4.8

From: Jackie Huang <[email protected]>

- Add systemd support
- Add PACKAGECONFIG for nss, dbus, rdma and snmp
- Install config file for corosync-notifyd

---
 .../corosync/corosync/corosync-notifyd.service     | 13 +++++++
 .../recipes-cgl/corosync/corosync/corosync.service | 26 ++++++++++++++
 .../{corosync_1.4.7.bb => corosync_1.4.8.bb}       | 42 ++++++++++++++++++----
 3 files changed, 74 insertions(+), 7 deletions(-)
 create mode 100644 meta-cgl-common/recipes-cgl/corosync/corosync/corosync-notifyd.service
 create mode 100644 meta-cgl-common/recipes-cgl/corosync/corosync/corosync.service
 rename meta-cgl-common/recipes-cgl/corosync/{corosync_1.4.7.bb => corosync_1.4.8.bb} (51%)
meta-cgl-common/recipes-cgl/corosync/corosync/corosync-notifyd.service new file +13 -0
new file mode 100644
index 0000000..ce576fe
@@ -0,0 +1,13 @@
+[Unit]
+Description=Corosync Dbus and snmp notifier
+Wants=corosync.service
+After=corosync.service
+
+[Service]
+EnvironmentFile=@SYSCONFDIR@/sysconfig/corosync-notifyd
+ExecStart=@SBINDIR@/corosync-notifyd -f $OPTIONS
+Type=simple
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
meta-cgl-common/recipes-cgl/corosync/corosync/corosync.service new file +26 -0
new file mode 100644
index 0000000..d5dd38f
@@ -0,0 +1,26 @@
+[Unit]
+Description=Corosync Cluster Engine
+ConditionKernelCommandLine=!nocluster
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+ExecStart=@DATADIR@/corosync/corosync start
+ExecStop=@DATADIR@/corosync/corosync stop
+Type=oneshot
+RemainAfterExit=yes
+
+# The following config is for corosync with enabled watchdog service.
+#
+#  When corosync watchdog service is being enabled and using with
+#  pacemaker.service, and if you want to exert the watchdog when a
+#  corosync process is terminated abnormally,
+#  uncomment the line of the following Restart= and RestartSec=.
+#Restart=on-failure
+#  Specify a period longer than soft_margin as RestartSec.
+#RestartSec=70
+#  rewrite according to environment.
+#ExecStartPre=/sbin/modprobe softdog soft_margin=60
+
+[Install]
+WantedBy=multi-user.target
meta-cgl-common/recipes-cgl/corosync/corosync_1.4.8.bb renamed from meta-cgl-common/recipes-cgl/corosync/corosync_1.4.7.bb +35 -7

87 lines not on this page · raw message

Signature · 1 line
2.11.0