From d5056629d4ce6060ae971fad77540f6f0aa78318 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Dec 2015 20:47:26 +0000 Subject: Add drbd.service --- systemd-units/drbd.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd-units/drbd.service 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 -- cgit v1.2.3