Originally Posted by
Orbital_sFear
Hey
coleman_ian,
My first question would be, are you sure the script is running? I recommend adding some debug lines into the script:
-Orbital
I changed the script to have some debug lines (and added some timing lines) and found that yes it was running, and there is still the delay when logging in.
I also tried manually stopping the process from tty1 and then logging in, which gave me no delay. The process changed from PID 16** to 26** when I manually killed then restarted it.
I have the following two logs:
With no manual kill (ie normal gui login)
Code:
Script Started
13:57:14.678893897
PID Before Kill
1657
13:57:14.695178949
13:57:14.711257373
13:57:14.712579821
PID After Kill
1657
13:57:14.727990199
After manual kill in tty1
Code:
Script Started
13:59:57.373258145
PID Before Kill
2615
13:59:57.392570473
13:59:57.417445537
13:59:57.420058056
PID After Kill
2615
13:59:57.440810428
For my own interest I also tried running the script without restarting the accounts-daemon, ie with the kill only, but still there was the login delay.
Code:
Script Started
14:06:57.610547014
PID Before Kill
1629
14:06:57.625700170
PID After Kill
1629
14:06:57.655398321
Seems like the kill command isn't working, so to confirm here is the line in my script:
Code:
ps -aef | grep accounts-daemon | grep -v grep | awk '{print $2}' | xargs kill -9
It appears that the script is taking a long time to initialise, because when it runs it takes very little time. I'm unsure why the script is taking so long to get called, any ideas on how to find out would be great.
Bookmarks