[systemd-devel] Managing autogenerated services
Mike Kazantsev
mk.fraggod at gmail.com
Wed Jun 1 10:01:35 PDT 2011
On Wed, 1 Jun 2011 15:36:55 +0200
yoshi watanabe <yoshi314 at gmail.com> wrote:
> Hi all
>
> I'd like to know how can one manage services that are being auto
> generated (e.g. mount points or cryptsetup).
>
> In case of mount points, i would like to have all mount services
> depend on arbitrary service of my choice. How do i do that?
>
A bit of a hack and probably depends on what you mean by "depend on
arbitrary service", but since all mount units have "Requires=-.mount" and
"After=-.mount", you should be able to create that unit manually
(overriding auto-generated one) and add any ordering or requirements
there.
> in case of cryptsetup - since my initrd (dracut) already opens the
> encrypted storage the autogenerated systemd cryptsetup service keeps
> timing out. How do i disable a service that's automatically generated
> by one of systemd helpers?
--
Mike Kazantsev // fraggod.net
More information about the systemd-devel
mailing list