diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-September/018998.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2012-September/018998.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-September/018998.html | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-September/018998.html b/zarb-ml/mageia-dev/2012-September/018998.html new file mode 100644 index 000000000..937b5c60a --- /dev/null +++ b/zarb-ml/mageia-dev/2012-September/018998.html @@ -0,0 +1,137 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] systemd and non-systemd services question + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20and%20non-systemd%20services%20question&In-Reply-To=%3C50647E34.1020901%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="018994.html"> + <LINK REL="Next" HREF="019002.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] systemd and non-systemd services question</H1> + <B>Colin Guthrie</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20systemd%20and%20non-systemd%20services%20question&In-Reply-To=%3C50647E34.1020901%40colin.guthr.ie%3E" + TITLE="[Mageia-dev] systemd and non-systemd services question">mageia at colin.guthr.ie + </A><BR> + <I>Thu Sep 27 18:26:28 CEST 2012</I> + <P><UL> + <LI>Previous message: <A HREF="018994.html">[Mageia-dev] systemd and non-systemd services question +</A></li> + <LI>Next message: <A HREF="019002.html">[Mageia-dev] systemd and non-systemd services question +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#18998">[ date ]</a> + <a href="thread.html#18998">[ thread ]</a> + <a href="subject.html#18998">[ subject ]</a> + <a href="author.html#18998">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>'Twas brillig, and Frank Griffin at 27/09/12 16:23 did gyre and gimble: +><i> I have a cauldron system with the Oracle Express Edition (oracle-xe) RPM +</I>><i> installed. This has worked nicely in the past, with the simple change +</I>><i> that the /etc/init.d/oracle-xe script needs to have LSB headers added. +</I>><i> +</I>><i> I don't start the DB automatically at boot, but only when I need it for +</I>><i> testing. Based on the creation date of the files in its log directory, +</I>><i> the last time it started was Aug 3. +</I>><i> +</I>><i> The database no longer starts. Running the sysv script produces the +</I>><i> message "Starting oracle-xe (via systemctl)", and produces no errors, +</I>><i> but nothing happens. "systemctl list-units | grep oracle" shows the +</I>><i> status of oracle-xe.service as "loaded active exited", but no Oracle log +</I>><i> file is created. Moreover, there is no oracle-xe.service file anywhere +</I>><i> on my root partition. +</I>><i> +</I>><i> Issuing "systemctl start oracle-xe.service" issues no output. Running it +</I>><i> under strace shows an execve for /bin/systemctl, and later on an execve +</I>><i> for /usr/bin/systemd-tty-ask-password-agent, but very little else, and +</I>><i> nothing that even hints at actually trying to execute any oracle code. +</I>><i> +</I>><i> It seems like sometime after Aug 3 systemd changed in some way as to +</I>><i> cause the failure. The system was built (and the oracle-xe rpm +</I>><i> installed) on Aug 2, and never gets touched after install (and the +</I>><i> addition of LSB headers). I haven't had to start it for a while, so I +</I>><i> can't get it more precise than that. +</I>><i> +</I>><i> Any idea how to diagnose this ? Does systemd keep logs anywhere ? +</I> +Yeah there are logs everywhere :) + +Provided you are root, "systemctl status oracle-xe.service" will show +you the last few lines of log. + +What is interesting here tho', is that it's asking you for a password. + +Keep in mind that when running under strace, systemctl will be +contacting PID 1 and asking it to start the service for you so you won't +see any direct attempts to to start your service. + +You can also look in the journal. If you want all logs related to a +particular unit you can do: "journalctl _SYSTEMD_UNIT=oracle-xe.service" +but it might be your issue is actually more related to the process of +starting it rather than actually starting it. + +So in this case you maybe want to just turn up systemd debug logging to +maximum (see man systemd for the numerous ways to do this, via kernel +command line, config option or even sending a signal with kill at +runtime SIGRTMIN+22 is probably what you want). + +Then run journalctl -f in one shell and try and start the service in +another. + +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="018994.html">[Mageia-dev] systemd and non-systemd services question +</A></li> + <LI>Next message: <A HREF="019002.html">[Mageia-dev] systemd and non-systemd services question +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#18998">[ date ]</a> + <a href="thread.html#18998">[ thread ]</a> + <a href="subject.html#18998">[ subject ]</a> + <a href="author.html#18998">[ 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> |