summaryrefslogtreecommitdiff
path: root/systemd-units/drbd.service
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-04 20:47:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-04 20:47:26 +0000
commitd5056629d4ce6060ae971fad77540f6f0aa78318 (patch)
tree51ef939e93af4ff9f0ab97e6c6df9a70fc3477dd /systemd-units/drbd.service
parentRemove aliases used for testing Opta transforms (diff)
downloadutil-d5056629d4ce6060ae971fad77540f6f0aa78318.tar.bz2
util-d5056629d4ce6060ae971fad77540f6f0aa78318.tar.xz
util-d5056629d4ce6060ae971fad77540f6f0aa78318.zip
Add drbd.servicedrbd-service-1
Diffstat (limited to 'systemd-units/drbd.service')
-rw-r--r--systemd-units/drbd.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd-units/drbd.service b/systemd-units/drbd.service
new file mode 100644
index 0000000..4ad4fd1
--- /dev/null
+++ b/systemd-units/drbd.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Distributed Replicated Block Device
+After=systemd-modules-load.service network-online.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+
+ExecStart=/sbin/drbdadm adjust all
+ExecStart=/sbin/drbdadm wait-con-int
+ExecStart=/sbin/drbdadm sh-b-pri all
+ExecStop=/sbin/drbdadm down all
+
+[Install]
+WantedBy=multi-user.target