summaryrefslogtreecommitdiff
path: root/systemd-units/drbd.service
diff options
context:
space:
mode:
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