diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-April/014212.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-April/014212.html | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-April/014212.html b/zarb-ml/mageia-dev/2012-April/014212.html new file mode 100644 index 000000000..1708db167 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-April/014212.html @@ -0,0 +1,138 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] minor systemd-related issues + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20minor%20systemd-related%20issues&In-Reply-To=%3C4F874F92.20903%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="014208.html"> + <LINK REL="Next" HREF="014218.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] minor systemd-related issues</H1> + <B>Colin Guthrie</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20minor%20systemd-related%20issues&In-Reply-To=%3C4F874F92.20903%40colin.guthr.ie%3E" + TITLE="[Mageia-dev] minor systemd-related issues">mageia at colin.guthr.ie + </A><BR> + <I>Thu Apr 12 23:56:34 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="014208.html">[Mageia-dev] minor systemd-related issues +</A></li> + <LI>Next message: <A HREF="014218.html">[Mageia-dev] minor systemd-related issues +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#14212">[ date ]</a> + <a href="thread.html#14212">[ thread ]</a> + <a href="subject.html#14212">[ subject ]</a> + <a href="author.html#14212">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>'Twas brillig, and David Walser at 12/04/12 21:25 did gyre and gimble: +><i> Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at ...</A>> writes: +</I>>>><i> httpd is running, but it is using the LSB init script instead of +</I>>>><i> systemd units. I believe Colin's intention was to have +</I>>>><i> apache-mpm-prefork install a symlink to httpd-prefork.service called +</I>>>><i> httpd.service, but this symlink does not exist. +</I>>><i> +</I>>><i> Are you sure? The %post script should certainly have done that.... +</I>>><i> +</I>>><i> [colin <at> jimmy ~]$ rpm -q --scripts apache-mpm-prefork +</I>>><i> postinstall scriptlet (using /bin/sh): +</I>>><i> ln -s /lib/systemd/system/httpd-prefork.service +</I>>><i> /etc/systemd/system/httpd.service 2>/dev/null || : +</I>>><i> +</I>>><i> I guess the only possible explanation I can think of here is that +</I>>><i> somehow, apache-mpm-prefork was upgraded before systemd was installed! +</I>>><i> Perhaps we need to make sure system is installed early in the process? +</I>><i> +</I>><i> I am sure. The only symlink in /etc/systemd/system is default.target, +</I>><i> everything else there is directories. Is that the right place to put that +</I>><i> symlink anyway? +</I> +Yes, the /etc/.... tree is the right place for this as it's a symlink +that could get overwritten by another mpm should the user decide it's +the correct mpm for their setup. The generic httpd.service link serves +two purposes here: 1. is to allow users to still refer to "httpd" +service (i.e. the command "service httpd restart" will still work, and +likewise calling the sysvinit script directly will also still redirect +properly to systemctl) and 2. is to allow a smooth upgrade from mga1 +such that the "enabled" state of the httpd service is properly migrated too. + +><i> I hadn't thought of the possibility that systemd not being installed is the +</I>><i> problem, but I guess that's the only logical explanation (unless systemd somehow +</I>><i> swept that directory and deleted it for some reason). I guess maybe the mpm +</I>><i> packages just need Requires(pre): systemd-units +</I> +Maybe, but looking at deps, basesystem requires systemd which requires +the units. Perhaps on upgrade, basesystem was not upgraded early enough. +Or maybe rpm-helper was not installed early enough... dunno. I can't +help but feel it would be overkill to add it to the mpm packages as a +Requires(pre) - it feels like it's something we should just be able to +rely on. That said, it would certainly work! + +Thinking about it, I reckon rpm-helper especially should be something +that is always installed first on a big upgrade. There could be multiple +files running e.g. %_post_service etc. in their post scripts but we +certainly want the latest rpm-helper for that. + +Perhaps something to check out. + +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="014208.html">[Mageia-dev] minor systemd-related issues +</A></li> + <LI>Next message: <A HREF="014218.html">[Mageia-dev] minor systemd-related issues +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#14212">[ date ]</a> + <a href="thread.html#14212">[ thread ]</a> + <a href="subject.html#14212">[ subject ]</a> + <a href="author.html#14212">[ 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> |