diff --git a/man/anvil-daemon.8 b/man/anvil-daemon.8 index 484fcc94..f1f4b5b1 100644 --- a/man/anvil-daemon.8 +++ b/man/anvil-daemon.8 @@ -11,13 +11,30 @@ anvil-daemon \- Main systemd daemon that can be run manually for testing and deb .SH OPTIONS .TP \-?, \-h, \fB\-\-help\fR -Show a prompt to read this man page. +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\-\-refresh-json\fR (derecated) Short hand for '--run-once', '--main-loop-only' and '--no-start'. Used to be use to refresh the JSON file used by striker's web interface to know hardware states. -\fB\-\-refresh-json\fR (derecated) -Short hand for '--run-once', '--main-loop-only' and '--no-start'. Used to be use to refresh the JSON file used by striker's web interface to know hardware states. - +.TP +\fB\-\-main-loop-only\fR +This skips the one-time, start-up tasks and just goes into the main-loop. +.TP +\fB\-\-no-start\fR +This will prevent any pending jobs from being picked up and started in this run. Note that other job checks will still happen. +.TP +\fB\-\-run-once\fR +This will tell the program to exit after runn the main loop once. +.TP +\fB\-\-startup-only\fR +This will tell the program to exit after running the start up tasks, so the main loop won't run. +.IP .SH AUTHOR Written by Madison Kelly, Alteeve staff and the Anvil! project contributors. .SH "REPORTING BUGS" diff --git a/tools/anvil-daemon b/tools/anvil-daemon index 4b2f863e..63a04a4a 100755 --- a/tools/anvil-daemon +++ b/tools/anvil-daemon @@ -139,7 +139,7 @@ if (not $anvil->data->{sys}{database}{connections}) } # Read switches -$anvil->Get->switches({list => ["?", "help", "h", "refresh-json", "run-once", "main-loop-only", "no-start", "purge", "startup-only"], man => $THIS_FILE}); +$anvil->Get->switches({list => ["?", "help", "h", "refresh-json", "run-once", "main-loop-only", "no-start", "startup-only"], man => $THIS_FILE}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => $anvil->data->{switches}}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0115", variables => { program => $THIS_FILE }});