diff options
author | root <root@rshg054.dnsready.net> | 2012-08-23 00:03:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-23 00:03:08 +0000 |
commit | c40883520f917311c212dc4a22e86be30cef658f (patch) | |
tree | ef8badd68c32564574e9b9317db1884fdaf98d2f /community-testing/drbd/drbd.service | |
parent | 297a042ac9a7bbd2b18a9551f5fa4fe43faf53b2 (diff) |
Thu Aug 23 00:03:08 UTC 2012
Diffstat (limited to 'community-testing/drbd/drbd.service')
-rw-r--r-- | community-testing/drbd/drbd.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community-testing/drbd/drbd.service b/community-testing/drbd/drbd.service new file mode 100644 index 000000000..ddd6c62b7 --- /dev/null +++ b/community-testing/drbd/drbd.service @@ -0,0 +1,19 @@ +[Unit] +Description=Distributed Replicated Block Device +After=systemd-modules-load.service network.target + +[Service] +Type=oneshot +RemainAfterExit=yes + +# load config +ExecStart=/usr/sbin/drbdadm adjust all +# user interruptible version of wait-connect all +ExecStart=/usr/sbin/drbdadm wait-con-int +# become primary if configured +ExecStart=/usr/sbin/drbdadm sh-b-pri all +# disconnect and detach all resources +ExecStop=/usr/sbin/drbdadm down all + +[Install] +WantedBy=multi-user.target |