On Wed, 20.04.11 11:24, Michael Olbrich ([email protected]) wrote:

> > If this is for SSH keys and stuff you might even want to split this up
> > into several units and just look for the sshd key files
> > directly. i.e. stick in your ssh-keygen.service something like this:
> > 
> > ConditionFileExists=!/etc/ssh/ssh_host_rsa_key
> > 
> > That way are things are nice and robust. And it comes at the cost of an
> > access() syscall. Which I think is pretty cheap.
> 
> Hmmm, If I do this then all such tasks would be triggered at the same time,
> right? In contrast to the usual startup tasks this stuff is rather resource
> intensive. Is there a way to serialize this?

Yes, absolutely. Just place "After=" or "Before=" in the unit files.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to