summaryrefslogtreecommitdiff
path: root/systemd-units/drbd.service
blob: e92980b63e6598ce71eccb407f902cc7450640eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Distributed Replicated Block Device
After=systemd-modules-load.service network-online.target
Wants=network-online.target

[Service]
Type=oneshot
RemainAfterExit=yes

ExecStart=/sbin/drbdadm adjust all
ExecStart=/sbin/drbdadm wait-con-int all
ExecStart=/sbin/drbdadm sh-b-pri all
ExecStop=/sbin/drbdadm down all

[Install]
WantedBy=multi-user.target