]>
Commit | Line | Data |
---|---|---|
00b72488 JR |
1 | [Unit] |
2 | Description=Distributed Replicated Block Device | |
3 | After=systemd-modules-load.service network.target | |
4 | ||
5 | [Service] | |
6 | Type=oneshot | |
7 | RemainAfterExit=yes | |
8 | # load config | |
9 | ExecStart=/sbin/drbdadm adjust all | |
10 | # user interruptible version of wait-connect all | |
11 | ExecStart=/sbin/drbdadm wait-con-int | |
12 | # become primary if configured | |
13 | ExecStart=/sbin/drbdadm sh-b-pri all | |
14 | # disconnect and detach all resources | |
15 | ExecStop=/sbin/drbdadm down all | |
16 | ||
17 | [Install] | |
18 | WantedBy=multi-user.target |