You are not logged in.

#1 2012-07-30 22:31:49

fincan
Member
Registered: 2010-07-13
Posts: 27

[SOLVED] Preload with systemd

How can I use preload with systemd? it start automaically or ll systemd support it in future?

Last edited by fincan (2012-08-02 22:07:33)

Offline

#2 2012-07-31 00:41:16

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Preload with systemd

You can add it to the daemons array in rc.conf.

Offline

#3 2012-07-31 02:45:10

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Preload with systemd

systemd features its own Readahead-style option, if that's what you're looking for.  Otherwise, hadrons123 has it right.

Offline

#4 2012-07-31 05:27:22

fincan
Member
Registered: 2010-07-13
Posts: 27

Re: [SOLVED] Preload with systemd

welli I use systemd-sysvcompat so there is no rc.conf. and I mean this preload package http://www.archlinux.org/packages/commu … 4/preload/ it is not linked to system boot time.

Offline

#5 2012-07-31 08:08:51

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED] Preload with systemd

You might need to write your own .service file if you want to use this preload. Alternatively you can use systemd's readahead.

Offline

#6 2012-07-31 11:21:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Preload with systemd

As another option e4rat works wonderfully with systemd.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-08-02 22:05:58

fincan
Member
Registered: 2010-07-13
Posts: 27

Re: [SOLVED] Preload with systemd

well with last update, preload.service added. thx  @Bartłomiej Piotrowski

Offline

#8 2012-09-17 15:16:27

msx
Member
From: solar.system/earth/ar/bue/mdp
Registered: 2010-08-08
Posts: 184
Website

Re: [SOLVED] Preload with systemd

Trilby wrote:

As another option e4rat works wonderfully with systemd.

That's what I wanted to hear!
I'm in the middle of migration to systemd and everything was quite smooth until I stump with init=/bin/systemd, which overrides my actual init=/sbin/e4rat-lite-preload line.
I already read from the wiki: "e4rat-collect defaults to replacing itself with /sbin/init upon completion. If you need to specify another PID 1, such as /bin/systemd, you can change this in /etc/e4rat.conf by setting the init parameter and uncommenting the line." but it's still unclear to me how to do this.
How have you managed to use e4rat preload in conjunction with systemd?


EDIT
Wait, "[...] you can change this in /etc/e4rat.conf by setting the init parameter and uncommenting the line." O_o
That means that I should replace:

[Global]
; Path to the main initialization process                                                                           
init_file=/sbin/init

to init_file=/bin/systemd?

Last edited by msx (2012-09-17 15:22:32)


Enjoying i3wm w/ lifebar + j4-dmenu-desktop + tab_windows / fish shell / Emacs / tmux / Konsole / KDE apps
Arch + Linux-libre kernel: ParabolaGNULinux.org

Offline

Board footer

Powered by FluxBB