Breadstick Get it on Google Play

molly-guard

protects machines from accidental shutdowns/reboots

UnsupportedCommand lineSystem

Unsupported

Guards shutdown and reboot, and an Android app can do neither.

System services (systemd, logind, polkit)

PlatformStandardVM
Android, ARM64UnsupportedUntested
GooglebookOS, ARM64UnsupportedUntested
GooglebookOS, x86-64UnsupportedUntested
ChromeOS, ARM64UnsupportedUntested
ChromeOS, x86-64UnsupportedUntested

Commands in the package

  • coldreboot
  • halt
  • pm-hibernate
  • pm-suspend
  • pm-suspend-hybrid
  • poweroff
  • reboot
  • shutdown

About molly-guard

From Debian's package description

The package installs a shell script that overrides the existing shutdown/reboot/halt/poweroff/coldreboot/pm-hibernate/pm-suspend* commands and first runs a set of scripts, which all have to exit successfully, before molly-guard invokes the real command.

One of the scripts checks for existing SSH sessions. If any of the four commands are called interactively over an SSH session, the shell script prompts you to enter the name of the host you wish to shut down. This should adequately prevent you from accidental shutdowns and reboots.

molly-guard diverts the real binaries to /lib/molly-guard/. You can bypass molly-guard by running those binaries directly.

From Debian's description of the molly-guard package, under that package's license.

Dependencies

Depends on

Sources and licenses

  • Name: the Debian package name.
  • Summary: Debian's short description of the molly-guard package, under that package's license.
  • Description: Debian's description of the molly-guard package, under that package's license.
  • Versions and sizes: Debian's archive for ARM64, as on packages.debian.org.
  • Popularity: Debian Popularity Contest counts.

More in About the catalog.