Bug 58081

Summary: RFE: provide functionality similar to molly guard
Product: systemd Reporter: Miroslav Suchy <miroslav>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WONTFIX QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Miroslav Suchy 2012-12-10 13:19:16 UTC
In Debian exists script:
http://packages.debian.org/sid/molly-guard
which - if reboot/shutdown is executed interactively - will ask you for hostname of machine which you think you are going to reboot/halt. Because sometimes it happens that you are rebooting different machine, than you think.

Molly-guard provides wrapper for shutdown, reboot, halt and poweroff and put them in /sbin, which is executed before normal "shutdown", which reside in /usr/sbin, which is in $PATH later.

Such hack is no more possible since migration to /usr/bin.

It would be if you can provide some option in /etc/systemd/system.conf (which would be by default to off), which when enabled will mimic behaviour of molly-guard.
Comment 1 Lennart Poettering 2013-01-14 23:20:14 UTC
Debian supports diverting package contents, maybe that's a possible solution?

I am not convinced that this is really something to support upstream in systemd.
Comment 2 Lennart Poettering 2014-06-25 09:43:49 UTC
Let's close this, I really don't think this should be in systemd uptsream. Sorry.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.