Am 26.08.2014 10:27, schrieb Michael Biebl:
> Am 26.08.2014 10:20, schrieb Nicolas George:
>> Then stopping the session fails:
>>
>> Aug 26 09:54:12 aimlin systemd[2719]: Failed at step CHDIR spawning 
>> /bin/kill: No such file or directory
>> Aug 26 09:54:12 aimlin systemd[1353]: systemd-exit.service: main process 
>> exited, code=exited, status=200/CHDIR
>> Aug 26 09:54:12 aimlin systemd[1353]: Failed to start Exit the Session.
>> Aug 26 09:54:12 aimlin systemd[1353]: Dependency failed for Exit the Session.
>> Aug 26 09:54:12 aimlin systemd[1353]: Unit systemd-exit.service entered 
>> failed state.
>>
>> That causes a 60 seconds timeout, making it seem shutdown is stuck.
> 
> IIRC the timout here is 90 seconds.
> 
>> The problem is that "step CHDIR" tries to chdir to the nonexistent home
>> directory, and considers the failure as fatal.
>>
>> AFAICS, the corresponding code is the same for the version currently in
>> experimental (214-1) and in upstream's Git head. See the second instance of
>> EXIT_CHDIR in src/core/execute.c and the only instance of get_home_dir() in
>> src/core/unit.c.
> 
> I guess that should be easy to verify.

I still get those error messages with v214 but it seems the session is
cleaned up properly. I do no longer have any (sd-pam) processes for that
user and no delay on shutdown.

That said, I guess we should fix the code to fall back to something safe
like / if the CHDIR does not succeed resp. the directory does not exist.






-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to