[Pkg-ceph-commits] [ceph] 01/03: install pm-suspend hook to stop ceph services on suspend and start on wake-up
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Tue Apr 8 07:09:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch experimental
in repository ceph.
commit 98e2153
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Mon Apr 7 23:26:17 2014
install pm-suspend hook to stop ceph services on suspend and start on wake-up
---
debian/ceph.install | 1 +
debian/etc/pm/sleep.d/25-ceph | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/debian/ceph.install b/debian/ceph.install
index 79a197d..10d6700 100644
--- a/debian/ceph.install
+++ b/debian/ceph.install
@@ -1,3 +1,4 @@
+debian/etc/pm/sleep.d/* /etc/pm/sleep.d/
../../src/rbdmap etc/ceph
../../udev/60-ceph-partuuid-workaround.rules lib/udev/rules.d
../../udev/95-ceph-osd.rules lib/udev/rules.d
diff --git a/debian/etc/pm/sleep.d/25-ceph b/debian/etc/pm/sleep.d/25-ceph
new file mode 100755
index 0000000..09f684a
--- /dev/null
+++ b/debian/etc/pm/sleep.d/25-ceph
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+##/etc/pm/sleep.d/25-ceph
+
+case $1 in
+suspend|hibernate)
+ service ceph stop
+;;
+resume|thaw)
+ service ceph start
+;;
+esac
--
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list