diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/drbd/drbd.service | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/drbd/drbd.service')
-rw-r--r-- | community/drbd/drbd.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community/drbd/drbd.service b/community/drbd/drbd.service new file mode 100644 index 000000000..a8053fb05 --- /dev/null +++ b/community/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/bin/drbdadm adjust all +# user interruptible version of wait-connect all +ExecStart=/usr/bin/drbdadm wait-con-int +# become primary if configured +ExecStart=/usr/bin/drbdadm sh-b-pri all +# disconnect and detach all resources +ExecStop=/usr/bin/drbdadm down all + +[Install] +WantedBy=multi-user.target |