Starting a service in the background?
I just ran
systemd-analyze blame
and found out that one service is costing me 22 seconds. Now I don't need network-manager until after I've logged in, so is there anyway to start it in the background like you could under init scripts?
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 1lddqa
2 comments
Systemd is asynchronous, so everything is started "in the background" what you probably want to do is remove that service as a dependency for a target. I don't know what service or target that it, and I'm on my phone, so I can't help you more.
Time your computer boot up and see how long it takes; I'm betting it's less than 22 seconds (depending on your hardware). It is being started in the background, it just takes that long for it to finish whatever it's doing and come to idle on that process.
It's not taking that much time away in the sense that it takes that long to get to a state where you can start using the computer, but it does add more load to the cpu for those 22 seconds, which does slow the boot. If you're looking for something lighter, netctl is a good option.