diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-April/014590.html')
| -rw-r--r-- | zarb-ml/mageia-dev/2012-April/014590.html | 176 | 
1 files changed, 176 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-April/014590.html b/zarb-ml/mageia-dev/2012-April/014590.html new file mode 100644 index 000000000..1eb939b0c --- /dev/null +++ b/zarb-ml/mageia-dev/2012-April/014590.html @@ -0,0 +1,176 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> +   <TITLE> [Mageia-dev] Migrating systemd units. Be careful and please test +   </TITLE> +   <LINK REL="Index" HREF="index.html" > +   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Migrating%20systemd%20units.%20Be%20careful%20and%20please%20test&In-Reply-To=%3C4F92D0E1.6050303%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="014628.html"> +   <LINK REL="Next"  HREF="014593.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> +   <H1>[Mageia-dev] Migrating systemd units. Be careful and please test</H1> +    <B>Colin Guthrie</B>  +    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Migrating%20systemd%20units.%20Be%20careful%20and%20please%20test&In-Reply-To=%3C4F92D0E1.6050303%40colin.guthr.ie%3E" +       TITLE="[Mageia-dev] Migrating systemd units. Be careful and please test">mageia at colin.guthr.ie +       </A><BR> +    <I>Sat Apr 21 17:23:13 CEST 2012</I> +    <P><UL> +        <LI>Previous message: <A HREF="014628.html">[Mageia-dev] Packages in Mageia liveCD +</A></li> +        <LI>Next message: <A HREF="014593.html">[Mageia-dev] Mounting nfs4 shares +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#14590">[ date ]</a> +              <a href="thread.html#14590">[ thread ]</a> +              <a href="subject.html#14590">[ subject ]</a> +              <a href="author.html#14590">[ author ]</a> +         </LI> +       </UL> +    <HR>   +<!--beginarticle--> +<PRE>Hello, + +I've been trying to review the LSB initscript headers and systemd unit +migration. + +It's really great to see packagers helping out here and I'd like to +thank everyone for their effort, but sadly there have been a couple of +errors cropping up in the process. So to help people out I'm including +some advice in this mail. I'll also include the same advice on the +systemd wiki page once I get around to updating it (trying to +consolidate the list of packages there with a Google docs spreadsheet I +have which is more detailed and easier to work with than the wiki page - +when done with that, this info will be on the wiki). + + +Be careful when copying Fedora units +==================================== + +Fedora use /run for .pid files. On Fedora /var/run is just a symlink to +/run. We don't do that yet, but we will will likely do this for mga3 as +it solves a few problems we've had to hackily work around. In the mean +time, we should in most cases use /var/run as the PID file path. The +only time when using /run for the PID file is when the ExecStart command +itself has an argument for the pidfile name passed in. If these two +match up then all is well. + +Also Fedora often has different syntax in /etc/sysconfig files. During +the migration to systemd they have likely simplified a few of them too. +Again, do not blindly assume the files are the same format. You have to +double check what we do in our initscript with the files and take +appropriate action. You may have to edit the initscript too if you +simplfy the syntax and you may also want to add default values for some +environment variables inside the unit itself. + + +Be careful of naming differences to sysvinit script +=================================================== + +If a native systemd unit has a different name to the sysvinit script +(ignoring the .service suffix) make sure to include a masking symlink +such that we know the two services are the same. + +e.g. in dhcp-forwarder, the sysvinit script name is dhcp-fwd, but the +systemd service is dhcp-forwarder.service. It's essential that you +include a symlink to dhcp-forwarder.service with the name +dhcp-fwd.service in order for both the upgrade migration and general +running of the system to work. + + +Please test the result or do not migrate for now +================================================ + +Some of the problems above are quite obvious when testing. Please make +sure to test things fully. + +If you are in any doubt, it's probably best to NOT migrate to a native +unit over a sysvinit script at this stage of the cycle as it could +introduce new problems quite easily. An exception would be if the +initscript does not have LSB headers. In this case I'm happy for either +a native systemd unit to be added or for the sysvinit script to simply +have LSB headers inserted. + +Cheers! + +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="014628.html">[Mageia-dev] Packages in Mageia liveCD +</A></li> +	<LI>Next message: <A HREF="014593.html">[Mageia-dev] Mounting nfs4 shares +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#14590">[ date ]</a> +              <a href="thread.html#14590">[ thread ]</a> +              <a href="subject.html#14590">[ subject ]</a> +              <a href="author.html#14590">[ 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>  | 
