diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-March/013220.html')
| -rw-r--r-- | zarb-ml/mageia-dev/2012-March/013220.html | 165 | 
1 files changed, 165 insertions, 0 deletions
| diff --git a/zarb-ml/mageia-dev/2012-March/013220.html b/zarb-ml/mageia-dev/2012-March/013220.html new file mode 100644 index 000000000..7a36f378a --- /dev/null +++ b/zarb-ml/mageia-dev/2012-March/013220.html @@ -0,0 +1,165 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> +   <TITLE> [Mageia-dev] systemd service file update message +   </TITLE> +   <LINK REL="Index" HREF="index.html" > +   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20service%20file%20update%20message&In-Reply-To=%3C4F672B4E.6010006%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="013218.html"> +   <LINK REL="Next"  HREF="013222.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> +   <H1>[Mageia-dev] systemd service file update message</H1> +    <B>Colin Guthrie</B>  +    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20service%20file%20update%20message&In-Reply-To=%3C4F672B4E.6010006%40colin.guthr.ie%3E" +       TITLE="[Mageia-dev] systemd service file update message">mageia at colin.guthr.ie +       </A><BR> +    <I>Mon Mar 19 13:49:18 CET 2012</I> +    <P><UL> +        <LI>Previous message: <A HREF="013218.html">[Mageia-dev] systemd service file update message +</A></li> +        <LI>Next message: <A HREF="013222.html">[Mageia-dev] systemd service file update message +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#13220">[ date ]</a> +              <a href="thread.html#13220">[ thread ]</a> +              <a href="subject.html#13220">[ subject ]</a> +              <a href="author.html#13220">[ author ]</a> +         </LI> +       </UL> +    <HR>   +<!--beginarticle--> +<PRE>'Twas brillig, and Anssi Hannula at 19/03/12 12:36 did gyre and gimble: +><i> 19.03.2012 14:32, Guillaume Rousse kirjoitti: +</I>>><i> This happens whenever a package with systemd support is updated: +</I>>><i> +</I>>><i> installation de nginx-1.0.14-1.mga2.x86_64.rpm depuis /var/cache/urpmi/rpms +</I>>><i> Préparation ... ############################################# +</I>>><i>       1/1: nginx ############################################# +</I>>><i> Warning: Unit file of created job changed on disk, 'systemctl --system +</I>>><i> daemon-reload' recommended. +</I>>><i> +</I>>><i> First question: should we not make rpm-helper automatically do it, if +</I>>><i> not already done ? +</I>>><i> +</I>>><i> Second question: could we ensure the message is not displayed if handled +</I>>><i> automatically ? +</I>><i>  +</I>><i> Looks it is handled (somewhat): +</I>>><i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">anssi at sigma</A> ~]$ cat /var/lib/rpm/filetriggers/systemd-daemon-reload.filter  +</I>>><i> ^./lib/systemd/system/ +</I>>><i> ^./etc/systemd/system/ +</I>>><i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">anssi at sigma</A> ~]$ cat /var/lib/rpm/filetriggers/systemd-daemon-reload.script  +</I>>><i> #!/bin/sh +</I>>><i> if /bin/mountpoint -q /sys/fs/cgroup/systemd; then +</I>>><i>   if [ -x /bin/systemctl ]; then +</I>>><i>   /bin/systemctl daemon-reload >/dev/null 2>&1 || : +</I>>><i>   fi +</I>>><i> fi +</I> +Yup, the filetrigger handles this generically. + +><i> However, maybe it is done too late? The Warning comes from %post, while +</I>><i> filetriggers are run at %posttrans time. +</I>><i> Maybe daemon-reload should be run in %_post_service instead? +</I> +I thought I had put it in %_post_service... hmmmm. + +I guess it should go before this line: +        /bin/systemctl --quiet try-restart $units + + +The file trigger is to catch when a unit changes. That may or may not +cover services specifically (could be socket or mount units etc.) thus +%_post_service may or may not be called. So I think the file-trigger is +still valid. + + + +As for silencing the message I agree. Not quite sure how that message is +generated however.... + +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="013218.html">[Mageia-dev] systemd service file update message +</A></li> +	<LI>Next message: <A HREF="013222.html">[Mageia-dev] systemd service file update message +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#13220">[ date ]</a> +              <a href="thread.html#13220">[ thread ]</a> +              <a href="subject.html#13220">[ subject ]</a> +              <a href="author.html#13220">[ 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> | 
