diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 20:47:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 20:47:26 +0000 |
commit | d5056629d4ce6060ae971fad77540f6f0aa78318 (patch) | |
tree | 51ef939e93af4ff9f0ab97e6c6df9a70fc3477dd /systemd-units/drbd.service | |
parent | Remove aliases used for testing Opta transforms (diff) | |
download | util-drbd-service-1.tar.bz2 util-drbd-service-1.tar.xz util-drbd-service-1.zip |
Add drbd.servicedrbd-service-1
Diffstat (limited to 'systemd-units/drbd.service')
-rw-r--r-- | systemd-units/drbd.service | 15 |
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 |