summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-September/018550.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2012-September/018550.html')
-rw-r--r--zarb-ml/mageia-dev/2012-September/018550.html110
1 files changed, 110 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-September/018550.html b/zarb-ml/mageia-dev/2012-September/018550.html
new file mode 100644
index 000000000..1b4c40274
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-September/018550.html
@@ -0,0 +1,110 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] Anyone know where /usr/bin/shutdown comes from?
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Anyone%20know%20where%20/usr/bin/shutdown%20comes%20from%3F&In-Reply-To=%3C504B1768.4080900%40colin.guthr.ie%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="018540.html">
+ <LINK REL="Next" HREF="018570.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?</H1>
+ <B>Colin Guthrie</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Anyone%20know%20where%20/usr/bin/shutdown%20comes%20from%3F&In-Reply-To=%3C504B1768.4080900%40colin.guthr.ie%3E"
+ TITLE="[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?">mageia at colin.guthr.ie
+ </A><BR>
+ <I>Sat Sep 8 12:01:12 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="018540.html">[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?
+</A></li>
+ <LI>Next message: <A HREF="018570.html">[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#18550">[ date ]</a>
+ <a href="thread.html#18550">[ thread ]</a>
+ <a href="subject.html#18550">[ subject ]</a>
+ <a href="author.html#18550">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>'Twas brillig, and Charles A Edwards at 07/09/12 23:16 did gyre and gimble:
+&gt;<i> On Fri, 07 Sep 2012 20:08:53 +0200
+</I>&gt;<i> Olivier Blin wrote:
+</I>&gt;<i>
+</I>&gt;&gt;&gt;<i> Not owned by any package so presumably it's from a %post or similar.
+</I>&gt;&gt;&gt;<i> Anyone know which package or a way to easily search for it?
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Looks like it's created by msec, see /usr/share/msec/plugins/msec.py:
+</I>&gt;&gt;<i> shutdown.exists() or shutdown.symlink(CONSOLE_HELPER)
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> And from &quot;rpm -q --scripts usermode&quot;:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> postinstall scriptlet (using /bin/sh):
+</I>&gt;&gt;<i> if [ ! -z &quot;$SECURE_LEVEL&quot; ];then
+</I>&gt;&gt;<i> if [ -x /usr/sbin/msec -a &quot;$SECURE_LEVEL&quot; -gt &quot;3&quot; ]; then
+</I>&gt;&gt;<i> /usr/sbin/msec $SECURE_LEVEL || true ; fi
+</I>&gt;&gt;<i> fi
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> Yep.
+</I>&gt;<i>
+</I>&gt;<i> If you look at the file type it's a symlink to consolehelper.
+</I>&gt;<i> If called as user it will require root passwd to run.
+</I>
+
+Ahh nice, thanks for the replies. msec indeed.
+
+We can now replace this symlink with a direct link to systemctl and
+policy kit should take care of things. Seems odd that shutdown was
+affected by msec, but halt, reboot and poweroff were not. Seems kinda
+pointless and a mis-feature really.
+
+As it never really worked, I'll kill it from msec and just ship it
+statically. If this msec feature is needed/desirable then it'll need to
+be re-implemented as an automatic edit of the policykit policy.
+
+Col
+
+
+--
+
+Colin Guthrie
+colin(at)mageia.org
+<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
+
+Day Job:
+ Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
+Open Source:
+ Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
+ PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
+ Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
+</PRE>
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="018540.html">[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?
+</A></li>
+ <LI>Next message: <A HREF="018570.html">[Mageia-dev] Anyone know where /usr/bin/shutdown comes from?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#18550">[ date ]</a>
+ <a href="thread.html#18550">[ thread ]</a>
+ <a href="subject.html#18550">[ subject ]</a>
+ <a href="author.html#18550">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>