[systemd-devel] [PATCH] units: add ConditionPathIsReadWrite for systemd-random-seed.service
Lennart Poettering
lennart at poettering.net
Thu Apr 10 14:10:47 PDT 2014
On Thu, 10.04.14 14:00, Jonathan Liu (net147 at gmail.com) wrote:
> ---
> units/systemd-random-seed.service.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/units/systemd-random-seed.service.in b/units/systemd-random-seed.service.in
> index 1879b2f..cbe000c 100644
> --- a/units/systemd-random-seed.service.in
> +++ b/units/systemd-random-seed.service.in
> @@ -13,6 +13,7 @@ RequiresMountsFor=@RANDOM_SEED@
> Conflicts=shutdown.target
> After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
> Before=sysinit.target shutdown.target
> +ConditionPathIsReadWrite=@RANDOM_SEED_DIR@
>
> [Service]
> Type=oneshot
What's the rationale here? I'd argue that the random seed service
*should* fail if /var is not writable. So what's the logic behind wanting
to conditionalize this?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list