Page MenuHomeClusterLabs Projects

No OneTemporary

diff --git a/mcp/pacemaker.upstart b/mcp/pacemaker.upstart
new file mode 100644
index 0000000000..ba4f0480ee
--- /dev/null
+++ b/mcp/pacemaker.upstart
@@ -0,0 +1,27 @@
+# pacemaker - High-Availability cluster resource manager
+#
+# Starts pacemakerd
+
+stop on runlevel [016]
+kill timeout 3600
+respawn
+
+env prog=pacemakerd
+env LOCK_FILE=/var/lock/subsys/pacemaker
+
+script
+ [ -f /etc/sysconfig/pacemaker ] && {
+ . /etc/sysconfig/pacemaker
+ }
+ exec $prog
+end script
+
+post-start script
+ touch $LOCK_FILE
+ pidof $prog > /var/run/$prog.pid
+end script
+
+post-stop script
+ rm -f $LOCK_FILE
+ rm -f /var/run/$prog.pid
+end script

File Metadata

Mime Type
text/x-diff
Expires
Wed, Oct 15, 11:59 PM (2 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2530603
Default Alt Text
(669 B)

Event Timeline