Bug 58081 - RFE: provide functionality similar to molly guard
Summary: RFE: provide functionality similar to molly guard
Status: RESOLVED WONTFIX
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-10 13:19 UTC by Miroslav Suchy
Modified: 2014-06-25 09:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.