Skip to content

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?

0 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
1lddqa

Author

13
posts
125
comments
0
media
View profile

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.

4 points

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.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.