/lib/systemd/system/drbd.service is in drbd8-utils 2:8.4.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | [Unit]
Description=Distributed Replicated Block Device
After=systemd-modules-load.service network.target
[Service]
Type=oneshot
RemainAfterExit=yes
# Check the configuration file for syntax errors
ExecStartPre=/sbin/drbdadm sh-nop
# Create the resources (and log what is being done)
ExecStart=/sbin/drbdadm adjust-with-progress all
# Wait for connection
ExecStart=/sbin/drbdadm wait-connect all
# Switch resources to primary if applicable
ExecStart=/sbin/drbdadm sh-b-pri all
# Deactivate all resources on stop
ExecStop=/sbin/drbdadm down all
# Re-adjust everything on reload
ExecReload=/sbin/drbdadm adjust all
[Install]
WantedBy=multi-user.target
|