From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Emacs startup options, Docker and the move to git Date: Wed, 30 Jul 2014 11:02:59 +0100 Message-ID: <87ha1zkvu4.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406714614 3835 80.91.229.3 (30 Jul 2014 10:03:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2014 10:03:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 30 12:03:26 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XCQj9-0003vf-NG for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2014 12:03:19 +0200 Original-Received: from localhost ([::1]:50008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCQj9-0005H4-9X for ged-emacs-devel@m.gmane.org; Wed, 30 Jul 2014 06:03:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCQiz-0005Fx-Di for emacs-devel@gnu.org; Wed, 30 Jul 2014 06:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCQir-00005b-Ud for emacs-devel@gnu.org; Wed, 30 Jul 2014 06:03:09 -0400 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:54631 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCQir-00005C-Om for emacs-devel@gnu.org; Wed, 30 Jul 2014 06:03:01 -0400 Original-Received: from nicferrier-dell-xps (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTPA id 7B874AC0A0C; Wed, 30 Jul 2014 12:14:55 +0200 (CEST) Original-Received: from nicferrier-XPS13-9333 (localhost [127.0.0.1]) by nicferrier-dell-xps (Postfix) with ESMTPS id 5A7A1603E3; Wed, 30 Jul 2014 11:02:59 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173277 Archived-At: 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