booting an unexpectedly off host and only update it's power state if the boot actually succeeded. * Started work on a new anvil-manage-daemons tool and anvil-monitor-daemons systemd unit. Signed-off-by: digimer <mkelly@alteeve.ca>main
parent
27152845fd
commit
835d9e79cb
8 changed files with 81 additions and 7 deletions
@ -0,0 +1,45 @@ |
||||
.\" Manpage for the Anvil! daemon managers |
||||
.\" Contact mkelly@alteeve.com to report issues, concerns or suggestions. |
||||
.TH anvil-manage-daemons "8" "August 02 2022" "Anvil! Intelligent Availability™ Platform" |
||||
.SH NAME |
||||
anvil-manage-daemons \- Tool used to monitor and manage Anvil! daemons. |
||||
.SH SYNOPSIS |
||||
.B anvil-manage-daemons |
||||
\fI\,<command> \/\fR[\fI\,options\/\fR] |
||||
.SH DESCRIPTION |
||||
When run with '\fB\-\-monitor\fR', it will run as a daemon, checking all other Anvil! daemons. If any are found to be 'failed', they will be stopped and restarted. |
||||
.TP |
||||
.SH OPTIONS |
||||
.TP |
||||
\-?, \-h, \fB\-\-help\fR |
||||
Show this man page. |
||||
.TP |
||||
\fB\-\-log\-secure\fR |
||||
When logging, record sensitive data, like passwords. |
||||
.TP |
||||
\-v, \-vv, \-vvv |
||||
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data. |
||||
.SS "Commands:" |
||||
.TP |
||||
\fB\-\-enable\fR |
||||
All Anvil! daemons that are not enabled will be enabled. |
||||
.TP |
||||
\fB\-\-disable\fR |
||||
All Anvil! daemons that are not disabled will be disabled. |
||||
.TP |
||||
\fB\-\-monitor\fR |
||||
This is set to the job UUID when the request to boot is coming from a database job. When set, the referenced job will be updated and marked as complete / failed when the run completes. |
||||
.TP |
||||
\fB\-\-now\fR |
||||
This can be used with \fB\-\-enable\fR or \fB\-\-disable\fR to have the daemons started or stopped immediately. |
||||
.TP |
||||
\fB\-\-start\fR |
||||
This will start all daemons that are not already running. |
||||
.TP |
||||
\fB\-\-stop\fR |
||||
This will stop all daemons that are not already stopped. |
||||
.IP |
||||
.SH AUTHOR |
||||
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors. |
||||
.SH "REPORTING BUGS" |
||||
Report bugs to users@clusterlabs.org |
@ -0,0 +1,13 @@ |
||||
[Unit] |
||||
Description=Anvil! Intelligent Availability Platform - Daemon Monitor |
||||
Wants=network.target |
||||
|
||||
[Service] |
||||
Type=simple |
||||
ExecStart=/usr/sbin/anvil-manage-daemons --monitor |
||||
ExecStop=/bin/kill -WINCH ${MAINPID} |
||||
Restart=always |
||||
RestartSec=60 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
Loading…
Reference in new issue