Skip to content

creating dummy /etc/resolv.conf without restarting nscd #49

Description

@apteryks

Hello,

In Guix, we need to create /etc/resolv.conf before the nscd service/daemon runs --that's done so that nscd can use inotify on the pre-existing resolv.conf file (if it doesn't exist, it does not monitor changes). This can't currently be done with openresolv -u as it wants to restart nscd itself, leading to some circular dependency in the services graph.

So the best I've found is to create the file "by hand", with the right comment signature that openresolv wants to know its responsible for it (# Generated by resolvconf).

Perhaps there could be a new option added to resolvconf, to create a dummy file with its comment, that would not attempt restarting nscd ? Or some explicit flag to tell it to not do that for a particular invocation?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions