all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@ferrier.me.uk>
To: emacs-devel@gnu.org
Subject: Emacs startup options, Docker and the move to git
Date: Wed, 30 Jul 2014 11:02:59 +0100	[thread overview]
Message-ID: <87ha1zkvu4.fsf@ferrier.me.uk> (raw)

I've been Dockerizing Emacs.

Docker is a GNU/Linux container system and very useful. 

For Emacs?? I hear you ask. Why yes, I reply. For testing and other
things like that. Also for rapid deployment of the server side of an
Emacs client/server app.

Docker runs a whole GNU/Linux init, it's very similar to a chroot. It
ends by calling some process which should hang and do whatever the point
of the Docker process was. For example, you might start a webserver. The
webserver should start in non-daemon mode, just hanging.

Now, coming to Emacs. There are two ways to run things in Emacs in
unattended mode: --batch  and --daemon

--batch is ideal for what it does I think, it starts with no init files
  and runs whatever you tell it and then quits

--daemon starts an Emacs process with a server started and immediately
  daemonizes it; backgrounding it and separating it from the terminal;
  init files ARE read and it's a normal Emacs session to all intents and
  purposes.


Neither of these is quite what I want with Docker. At the moment I am
using an Emacs daemon because I want a real Emacs session - one with init
files but no user interface.

But I would prefer to be able to start a headless Emacs process/session
and have it not daemonize. Do every thing that --daemon does except
actually daemonize. This doesn't seem possible.

This would also be useful for running Emacs in daemon situations where
something else is providing the daemonizing, supervisord for example, or
one of the new breed of init tools.

Does anyone know if we can do something like this?


Coming to the last point, what's the state of the git migration? 

I'd be happy to add a startup option, say --server, which would start a
server but not daemonize... but I don't want to get involved with
bzr. It's just another thing to remember (I am absolutely in that class
of people esr identified as a potential contributor who would act if
there was git).



Nic



             reply	other threads:[~2014-07-30 10:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 10:02 Nic Ferrier [this message]
2014-07-31 14:28 ` Emacs startup options, Docker and the move to git Paul Eggert
2014-07-31 18:53   ` Nic Ferrier

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=87ha1zkvu4.fsf@ferrier.me.uk \
    --to=nferrier@ferrier.me.uk \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.