From: Robert Vasek <rvasek01@gmail.com>
To: autofs@vger.kernel.org
Subject: Skip autofs unmount on daemon exit
Date: Mon, 6 Nov 2023 18:05:41 +0100 [thread overview]
Message-ID: <CADVsYmhjjKYUCHGWmzeTHXuQNAiR6ELbGzyy+m30ar+yaYLBzQ@mail.gmail.com> (raw)
Dear autofs community,
We run an instance of the automount daemon inside a container (a part
of a storage plugin in Kubernetes). The autofs mount root is shared
between different containers, and must survive restarting the daemon.
The problem is that when the daemon exits, it tries to clean up all
its mounts -- including the autofs root, so there is nothing to
reconnect to. At the moment, we're getting around the issue by sending
it a SIGKILL upon the daemon container exit, which skips the mount
cleanup, leaving it available for reconnect when the container comes
back.
While this works nicely for the moment, we don't want to rely on some
random signal which may be handled differently in the future, and I
didn't see anything in the options that would explicitly skip mount
clean up at exit. Would you accept a patch that adds a dedicated
command line flag for this?
Cheers,
Robert Vasek
next reply other threads:[~2023-11-06 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 17:05 Robert Vasek [this message]
2023-11-07 2:15 ` Skip autofs unmount on daemon exit Ian Kent
2023-11-08 16:29 ` Robert Vasek
2023-11-08 17:49 ` Mike Marion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADVsYmhjjKYUCHGWmzeTHXuQNAiR6ELbGzyy+m30ar+yaYLBzQ@mail.gmail.com \
--to=rvasek01@gmail.com \
--cc=autofs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).