As you know me, i have scripts for about almost every aspect of my IT life.
This time, i'm having issues to figure out why my script to connect to my wifi spots takes so long when started as service.
The service file (the after:local-fs.target is for 'home installations'):
Now, when i connect to my wifi spots using the script, it is 'quite fast'..
But during boot, it takes like the tripple time...
From here on i have not much of an idea where to dig.
The systemd-analyze plot > boot.png only showed that the service is loaded properly after local-fs.target was reached, and that it took until graphical.target was loaded.
So my question is, any idea why there is such a time difference, or how i could figure out more myself?
Thank you in advance.
---------- Post updated at 13:46 ---------- Previous update was at 00:51 ----------
I even removed the After=local-fs.target as i had moved the creds to root account, and restarted (stop,disable,enable,start) the service in the hope to speed up the process, as i would not need to wait for /home decryption.
So, i'm actualy getting 3 different times, ~6 secs when calling the programm directly, ~9 secs when calling the service directly, but ~16-18secs when booting.
Any ideas please why i might getting such different times for the same command?
Where to dig now?
What info do you need to tell me where to look?
Sorry for the delay, but since its not breaking usability i forgot about it, as i had more urgent matters.
@ brij123: Arch
@ cjox, good idea, did so now: https://github.com/systemd/systemd/issues
Thanks for your replies.
Hi,
I am trying to understand what would happen if ther is a loop without any delay like sleep statement, I feel that would add a lot of load onto the CPU. Trying to understand how the load is reduced by the introduction of sleep().
Thanks and regards
Zulfi (3 Replies)
I have a list of URLs that I need to download in a file.
I know I can use the -i option to load the URLs from the file, but how can I make Wget wait a couple secs between each URL download? (4 Replies)
We have an OpenServer 5.0.5 system that has worked forever, but I'm hearing complaints of logon delays for users now. Normally they would telnet in and the logon screen would pop up, but now it sometimes takes a minute or more, and the user must hit the enter key to get it to appear. Everything... (11 Replies)
Hi,
In my shell script, (as per the requirement), I am creating few files, and the processes are launched parallelly . (by using "&" at the end of the command line). As per the logic, I need to remove these files as well, after creating.
But, the problem is, due to parallel processing,... (3 Replies)
Dear all,
if we want to run a command every 5 mins to check if the process is working fine or not...
like in c, we can use a simple while loop with a delay for 5 mins...
how can we accomplish this is solaris 8/9
thanks
br/asad (5 Replies)
How to delay a process.
I need to to delay a process from 3sec.
At that 3sec other back ground processes also should stop.
(just sit 3sec for idle & then starts execution as normally)
I use sleep(3)-But it not stop the bg processes
I try to use loop but it not gurantee to wait 3sec.
... (2 Replies)
Hi,
I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.
Now I'm bothered about how to introduce a delay that is just
less than a second. Like... (3 Replies)
Working on AIX 4.3
I have an active exe that accepts files for processing on our RS6000. Day to day i store these files in a secure place and at the end of the day I mv them one by one. After some reading and ofcourse trial and error i figured out that this helps...
mv `ls -l |head -l | awk... (2 Replies)
Hello(again), but I was wondering how you would obtain a keyboard stroke from a user with no delay(they don't have to hit enter) and then place that stroke into a variable?
Lets say you tell the user to hit, on the numpad, a number. Then that number is placed into a variable w/o the user hitting... (2 Replies)
When telneting to a SUN box and incorrectly spelling your password, there is a delay of approx. 5 seconds. Is there any way to shorten this time?
OS solaris 7 (1 Reply)