blob: a8053fb05327edc2330aa2a9f330462a87c942b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|