Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread tilt!
On 08/29/2015 01:02 PM, Tobias Hunger wrote: 8...] The init system should stop such services and you should fix the init system and not add clutches all over the place to work around its limitations. Best Regards, Tobias Hi, I'm not 100% sure what you want, but I think I have no time for

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread Rainer Weikusat
"tilt!" writes: > I use xfce-session with nodm, a (very) lightweight display manager. > It essentially puts a user's x session into an endless loop. > > When shutting down the system via logout dialog (utilizing pm-utils), > at least on my installation (utilizing sysvinit), nodm fails to > recogni

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread Tobias Hunger
Am 29.08.2015 10:26 vorm. schrieb "tilt!" : > My wording was biased there. To put it in clear terms: > > I think it's wrong that nodm attempts to (re)start an interactive > X session when the system is already scheduled for shutdown. > > I find it wrong, because it is misleading the user into inter

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread tilt!
Hi Tobias, On 08/29/2015 09:50 AM, Tobias Hunger wrote: > [...] > >>> I do not think you would need it anyway as systemd will stop the display >>> manager all by itself. >> >> Given the unclarity I tried to express in my previous questions, i admit >> that i am currently not too confident about

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread Tobias Hunger
Hi tilt!, Am 29.08.2015 07:53 schrieb "tilt!" : > thanks a lot for these hints! Please understand the following questions not > directed specifically to you, it's just that I am not very much into systemd, > and i appreciate every piece of clarification a lot. I post this here, because > this is o

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread tilt!
As i found out, utmpx.h is in POSIX, but it (of course) has no notion of a runlevel (RUN_LVL is not defined, it's only in utmp.h). This somehow makes my questions less applicable to the actual problem I'm trying to solve. It still is generally interesting, but for a "POSIX-portable" solution to

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-29 Thread Tomasz Torcz
On Fri, Aug 28, 2015 at 11:09:08PM +0200, tilt! wrote: > Does systemd write RUN_LVL utmp entries in a compliant fashion; > especially, when entering shutdown, does it generate an entry of > ut_type RUN_LVL with ut_pid set to 0? https://github.com/systemd/systemd/blob/master/src/shared/utmp-wtmp.c

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-28 Thread tilt!
Hello Tobias, thanks a lot for these hints! Please understand the following questions not directed specifically to you, it's just that I am not very much into systemd, and i appreciate every piece of clarification a lot. I post this here, because this is one forum I know that cares about portab

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-28 Thread Tobias Hunger
Hi tilt! The systemd 217 announcement contained something about utmp support being compile time optional to have legacy free systems. So I would not depend on that service. I do not think you would need it anyway as systemd will stop the display manager all by itself. Best Regards, Tobias __

Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-28 Thread Jaromil
On August 28, 2015 11:09:08 PM GMT+02:00, tilt! wrote: > >Does systemd write RUN_LVL utmp entries in a compliant fashion; >especially, when entering shutdown, does it generate an entry of >ut_type RUN_LVL with ut_pid set to 0? very good question!! >Kind regards, _

[DNG] does systemd set runlevel 0 in utmp on shutdown?

2015-08-28 Thread tilt!
Hi, I use xfce-session with nodm, a (very) lightweight display manager. It essentially puts a user's x session into an endless loop. When shutting down the system via logout dialog (utilizing pm-utils), at least on my installation (utilizing sysvinit), nodm fails to recognize that the system is