table of contents
MOLLY-GUARD(8) | [FIXME: manual] | MOLLY-GUARD(8) |
NAME¶
molly-guard - guard against accidental shutdowns/rebootsSYNOPSIS¶
shutdown
[- hV] [--molly-guard-do-nothing]
[-- script_options]
halt
[- hV] [--molly-guard-do-nothing]
[-- script_options]
reboot
[- hV] [--molly-guard-do-nothing]
[-- script_options]
poweroff
[- hV] [--molly-guard-do-nothing]
[-- script_options]
DESCRIPTION¶
•MOLLYGUARD_CMD - the actual
command invoked by the user.
•MOLLYGUARD_DO_NOTHING - set to
1 if this is a demo-run.
•MOLLYGUARD_SETTINGS - the path
to a shell script snippet which scripts can source to obtain settings.
GUARDING SSH SESSIONS¶
•running sudo within screen or screen
within sudo; sudo eats the SSH_CONNECTION variable, and screen creates
a new pty.
•executing those command in a remote
terminal window, that is a XTerm started on a remote machine but displaying on
the local X server.
You have been warned. You can use the --molly-guard-do-nothing switch to
prevent anything from happening, e.g. halt --molly-guard-do-nothing.
OPTIONS¶
--molly-guard-do-nothingCause molly-guard to print the command
which would be executed, after processing all scripts, instead of executing
it.
-h, --help
Display usage information.
-V, --version
Display version information.
SEE ALSO¶
LEGALESE¶
molly-guard is copyright by martin f. krafft. Andrew Ruthven came up with the idea of using the scripts directory and submitted a patch, which I modified a bit. This manual page was written by martin f. krafft madduck@madduck.net. Permission is granted to copy, distribute and/or modify this document under the terms of the Artistic License 2.0COPYRIGHT¶
Copyright © 2008 martin f. krafftApril 19, 2008 | [FIXME: source] |