[systemd-devel] [PATCH][v1]random-seed: Save random seed as early as possible

cee1 fykcee1 at gmail.com
Sat Jun 20 08:29:25 PDT 2015


Hi Lennart,

A second thought, splitting systemd-random-seed.service into:
1. systemd-random-seed-load.service: which only do the seed loading job
2. systemd-random-seed-save.service: which will save a new seed, and
is "After", but not "Requires" or "Wants"
systemd-random-seed-load.service

Both of the services use the same binary "systemd-random-seed" with
different argv[1]("load" vs "save")

Seems better than the patch v1, what do you think?



2015-06-19 21:34 GMT+08:00 cee1 <fykcee1 at gmail.com>:
> Hi all,
>
> As discussed at
> http://lists.freedesktop.org/archives/systemd-devel/2015-June/033075.html,
> this patch saves seed with ** good ** random number as early as
> possible, as opposed to the original behavior, which saves a random
> number when shutdown.
>
> Note:
> 1. If seed loading failed, it will not save a new seed. May not be the
> proper behavior?
> 2. The STATUS sent by the second and third sd_notify() are not shown
> in "systemctl status systemd-random-seed.service", need some kind of
> improvement.
>
> Please comment and give suggestions :)
>
>
>
> --
> Regards,
>
> - cee1



-- 
Regards,

- cee1


More information about the systemd-devel mailing list