b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # This file is interpreted as a shell script. |
| 4 | # The first line of the script must be "#!/bin/sh" without quotes. |
| 5 | # Lines beginning with # are comments and are not executed. |
| 6 | # |
| 7 | # There are three environment arguments that are passed to this script. |
| 8 | # |
| 9 | # $TYPE Set to INSTANCE or GROUP, depending on whether keepalived invoked the program from vrrp_instance or vrrp_sync_group. |
| 10 | # $NAME Set to the name of the vrrp_instance or vrrp_sync_group. |
| 11 | # $ACTION Set to the end state of the transition. |
| 12 | # Valid values are: |
| 13 | # $TYPE==INSTANCE: [ NOTIFY_BACKUP | NOTIFY_MASTER | NOTIFY_FAULT | NOTIFY_STOP | NOTIFY ] |
| 14 | # $TYPE==GROUP: [ NOTIFY_BACKUP | NOTIFY_MASTER | NOTIFY_FAULT | NOTIFY ] |