[systemd-devel] [PATCH] TODO: add molly-guard functionality

Tobias Geerinckx-Rice tobias.geerinckx.rice at gmail.com
Sun Aug 24 04:47:07 PDT 2014


On 24 August 2014 04:26, Josh Triplett <josh at joshtriplett.org> wrote:
> +  - add molly-guard functionality: prompt for hostname if interactively shutting down a remote system (running as child of ssh)

I'll assume (and hope) that both the hostname prompt and SSH child
rule are merely example configurations of a more generic system. SSH
is far from the only possible use-case, and hostnames aren't always
that relevant.

Which makes me wonder whether this can't already be done today, with
some simple Requires/ExecStart{,Pre}/... snippets on shutdown.target.
These could even be shipped by default, pointing to some empty
systemd/shutdown.d directory.

(Now, that still sounds quite dirty, and leaves an unpleasant SysV
aftertaste; but it's a lot better than hard-coding this [*if* that's
what anyone is contemplating. Perhaps I'm being paranoid, but I never
know when adding another --disable- switch to ./configure will finally
return E2BIG...])

Regards,

T G-R


More information about the systemd-devel mailing list