Autor: Rainer Weikusat Fecha: A: dng Asunto: Re: [DNG] does systemd set runlevel 0 in utmp on shutdown?
"tilt!" <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
> recognize that the system is in shutdown and restarts xfce-session
> after xfce-session has received SIGTERM from the shutdown procedure.
>
> I have fixed this behavior by letting nodm evaluate utmp to determine
> if the current runlevel is 0, and if yes, not restart the x session.
In the process monitor I've been using so far, this can be accomplished
by sending a SIGTERM directly to the process monitor. It will then
terminate the managed application (SIGTERM plus timeout followed by
SIGKILL in case the application didn't terminate) and then terminate
itself.