Example: Staged Maintenance Flow
The following example demonstrates a set of staged executions that send a notification to all users, logs their sessions out and disables further logins to the system (example-logout-users.sh), fails over HA resources, stops required services before installing updates and then triggers update installation.
All service stop actions in the example are within a shared priority group and will execute in parallel.
[notify]
command = /usr/libexec/terminusd/examples/example-shutdown-notify.sh
priority = 100
[logout_users]
command = /usr/libexec/terminusd/examples/example-logout-users.sh
priority = 200
[ha_failover]
command = /usr/local/bin/failover-ha-resources.sh --force --noconfirm
priority = 300
critical = true
[stop_vcs]
command = /bin/systemctl stop vcs.service
priority = 400
critical = true
[stop_llt]
command = /bin/systemctl stop llt.service
priority = 400
critical = true
[stop_gab]
command = /bin/systemctl stop gab.service
priority = 400
critical = true
[update]
command = /usr/libexec/terminusd/examples/example-package-updates.sh
priority = 500
critical = true
[cleanup]
command = /usr/local/sbin/post-update-cleanup.sh
priority = 600