[systemd-devel] howto migrate some things to systemd
lennart at poettering.net
Wed Apr 20 07:01:05 PDT 2011
On Wed, 20.04.11 11:24, Michael Olbrich (m.olbrich at pengutronix.de) 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 Poettering - Red Hat, Inc.
More information about the systemd-devel