Am 15.04.2013 21:17, schrieb Kok:
> On Mon, Apr 15, 2013 at 10:59 AM, Reindl Harald <h.rei...@thelounge.net> 
> wrote:
>>
>>
>> Am 15.04.2013 19:53, schrieb Kok:
>>>> thanks, i will give it a try
>>>> why not "Type=forking"?
>>>>
>>>> in my expierience a service works with simple/forking and only
>>>> one of them while i must say my low-level understanding may
>>>> not be enouh to realize what to use.............
>>>
>>> The daemon doesn't need to do extra work to fork, and systemd won't
>>> need to do all the work associated with tracking a forked process -
>>> it's a lot less work, thus more efficient, and actually more robust
>>
>> hi
>>
>> does this mean in recent systemd-versions it is no longer needed
>> to use "Type=forking" at all while it was a must for some servcies
>> in early versions?
> 
> no, which is why I added the '-f' flag to the preload startup in the
> service unit that I posted (it keeps preload running in the
> foreground)

aaah NOW i got it

forgive a user that he is not so in the deep inside the
details as people breath systemd like the air :-)

P.S:
the "After=kdm.service" is exactly what i want
preload at the very and at boot and use the time between show
the login-screen and the login happening while feed systemd-readahead
with the results from "preload.service" in the 10 seconds
___________________________

[root@srv-rhsoft:~]$ systemctl status preload.service
preload.service - Adaptive readahead daemon
   Loaded: loaded (/etc/systemd/system/preload.service; enabled)
   Active: active (running) since Mo 2013-04-15 22:24:27 CEST; 10s ago
 Main PID: 2149 (preload)
   CGroup: name=systemd:/system/preload.service
           └─2149 /usr/sbin/preload -f --verbose 1
___________________________

[root@srv-rhsoft:~]$ cat /etc/systemd/system/preload.service
[Unit]
Description=Adaptive readahead daemon
After=kdm.service

[Service]
Type=simple
ExecStart=/usr/sbin/preload -f --verbose 1
Restart=always
RestartSec=1
Nice=19
IOSchedulingClass=3

[Install]
WantedBy=multi-user.target
___________________________

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to