diff options
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 |