<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE> [Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not. </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B4244%5D%20services%3A%20Do%20not%20rely%20on%0A%20/var/lock/subsys/%20%24service%20to%20determin%20if%20a%20service%20is%20running%20or%20not.&In-Reply-To=%3CCAONrEtYHQP%3DJveX_4K4Lt484D4k%2B1Day8eYPq3Zf72c2t4v0eA%40mail.gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="014765.html"> <LINK REL="Next" HREF="014761.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not.</H1> <B>Thierry Vignaud</B> <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B4244%5D%20services%3A%20Do%20not%20rely%20on%0A%20/var/lock/subsys/%20%24service%20to%20determin%20if%20a%20service%20is%20running%20or%20not.&In-Reply-To=%3CCAONrEtYHQP%3DJveX_4K4Lt484D4k%2B1Day8eYPq3Zf72c2t4v0eA%40mail.gmail.com%3E" TITLE="[Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not.">thierry.vignaud at gmail.com </A><BR> <I>Wed Apr 25 10:58:35 CEST 2012</I> <P><UL> <LI>Previous message: <A HREF="014765.html">[Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not. </A></li> <LI>Next message: <A HREF="014761.html">[Mageia-dev] [soft-commits] [4251] services: Read systemd service information. </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#14767">[ date ]</a> <a href="thread.html#14767">[ thread ]</a> <a href="subject.html#14767">[ subject ]</a> <a href="author.html#14767">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>On 25 April 2012 10:52, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>> wrote: >><i> BTW we should make is_service_running more robust by handling services </I>><i> </I>><i> Maybe, but unless this is happening before mga2, then there is little </I>><i> point as all services have a status under systemd. </I>><i> </I>><i> There is also the problem of how do you check? We are already using the </I>><i> exit code... </I> for systemd, future is shinning. For older initscripts w/o units or when running under sysvinit, we sadly cannot disting between error code b/c status is KO from "I don't actually implement status" w/o first checking for usage (grepping output of "service foobar"). Since that's an old issue, maybe should we just not care about it and wait for systemd to eventually kill sysvinit in mga3. I've also seen status displaying errors but returning 0 :-) But that cannot be fixed. </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="014765.html">[Mageia-dev] [soft-commits] [4244] services: Do not rely on /var/lock/subsys/ $service to determin if a service is running or not. </A></li> <LI>Next message: <A HREF="014761.html">[Mageia-dev] [soft-commits] [4251] services: Read systemd service information. </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#14767">[ date ]</a> <a href="thread.html#14767">[ thread ]</a> <a href="subject.html#14767">[ subject ]</a> <a href="author.html#14767">[ 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>