From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Emacs Daemon --- Dies silently Date: Thu, 14 Jan 2021 13:44:26 -0800 Message-ID: <24576.47930.444167.57563@retriever.mtv.corp.google.com> References: <20210113211300.0E1D8C21335@raman-glaptop.localdomain> <83y2gwb3lr.fsf@gnu.org> <24576.26590.888158.189983@retriever.mtv.corp.google.com> <83pn27bh79.fsf@gnu.org> <87wnwfb6dc.fsf@blind.guru> Reply-To: "T.V Raman" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6368"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, raman@google.com To: mlang@blind.guru Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 14 22:45:17 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0AQe-0001RN-6p for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Jan 2021 22:45:16 +0100 Original-Received: from localhost ([::1]:51180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0AQd-0002do-7I for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Jan 2021 16:45:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0APw-0002EP-OF for emacs-devel@gnu.org; Thu, 14 Jan 2021 16:44:32 -0500 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:51181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0APv-0000Xm-5f for emacs-devel@gnu.org; Thu, 14 Jan 2021 16:44:32 -0500 Original-Received: by mail-pj1-x1036.google.com with SMTP id md11so3871995pjb.0 for ; Thu, 14 Jan 2021 13:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=ORQYu5uhrOVw5boUpzWUq17T4eD6NY2w8nSFLfxlQF0=; b=P/ROoBCb3/Vvmq05cJpEPtCFpNhO/+aViMlJsTkGnFfFr3lnkRL8PT9inKiFu3CAQa Fb0xzqJrOmI5cjF+YAyxGtXFU1vPLqyxS3qNlciXYFaLGJxGYevfR2u+tExYv196SbrO CorTNXej61mqZYBiZWxyxciZd0/jsg9fhvkQc1QU6R4WSr2cMDkkZv7IjwjEwotIHU9o Tqgxjk9cQrVnCgORyef8p38dBm3bqcmZvoc1JAiZsWOZPu1mMFAE3pswnE5LPu+cEOq/ 4S46/Obtna96agMZ9AoESwbiSd6cYz/7zNrhsHjkWfM8mTxMrHUqapn3kgmQMVM/55Qa 4JoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=ORQYu5uhrOVw5boUpzWUq17T4eD6NY2w8nSFLfxlQF0=; b=eoiZfSipLEirS8Hotv0f/vGUwWAqM260naQ8MFACZccwE92GzPS93KTLkFYCpUz/Tj PLmI9w7AsxtA5uyKC0MxZ7gEB1FuvNOUOvDvegORTpJ80eXN1EA96LoGV6SuZyzd9UJT 7Y+KntvsFP6AVOm0pC1n82sS0lKE8eC0nyDKL/xlLBEl4xKB8xRyrG67eP3OEugq+cHd ga/wn7PxOj1t43naBlyBXbElGXzgjEWO+l8XgkbvJIC+31WH0CtbGajDJgmGLeZeR2CO hP8Zl9OLMCSwwJGcxS5O0zp8/y0GmpyiuKkNkpH1XAgw6AzbKqm3Bty42BYoBtt0Zumg wVBg== X-Gm-Message-State: AOAM533QL9h7QR5Lb2WWPrDc2uoLUdaHQEbtnBA5vlJU3V3rlvaTvRnI 1ULaXHaWj9fR1lIw7Qyq+ScegA== X-Google-Smtp-Source: ABdhPJx6rAL9CLUNe6ccV7kqWbOGJPyLtmoskJ8S4VBcvRHkqjw73Rt8WwQZ5RPC4Xm5/fLvXacTLw== X-Received: by 2002:a17:902:d202:b029:da:d86b:78be with SMTP id t2-20020a170902d202b02900dad86b78bemr9516112ply.0.1610660668225; Thu, 14 Jan 2021 13:44:28 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([172.22.80.201]) by smtp.gmail.com with ESMTPSA id z3sm6081213pgs.61.2021.01.14.13.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 13:44:27 -0800 (PST) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 7E5A918004A4; Thu, 14 Jan 2021 13:44:26 -0800 (PST) In-Reply-To: <87wnwfb6dc.fsf@blind.guru> X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=raman@google.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -177 X-Spam_score: -17.8 X-Spam_bar: ----------------- X-Spam_report: (-17.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-0.237, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263059 Archived-At: I think this was luser error on my part -- I've always run emacs or emacs --daemon under screen. Since I was using the daemon, a few days ago I eliminated screen from my setup -- and then forgot all about it -- I believe screen is what was keeping the emacs alive which makes sense. I had somehow (wrongly=3F) assumed that if I ran emacs --daemon, it would survive across sessions with respect to ssh --- I was clearly wrong. Mario Lang writes: > "T.V Raman" writes: >=20 > [...] >=20 > > On the other hand emacs --daemon appears to be quitting when I log= out > > from the remote machine. >=20 > Shot in the dark, but might systemd have something to do with that=3F= > IOW, do you run emacs --daemon via a systemd user service=3F > If so, see loginctl, in particular: >=20 > enable-linger [USER...], disable-linger [USER...] > Enable/disable user lingering for one or more users. > If enabled for a specific user, a user manager is spawned > for the user at boot and kept around after logouts. This allow= s users who > are not logged in to run long-running services. Takes one or m= ore > user names or numeric UIDs as argument. If no argument is spec= ified, > enables/disables lingering for the user of the session of the = caller. >=20 > See also KillUserProcesses=3D setting in logind.conf(5). > =20 > --=20 > CYa, > =E2=A1=8D=E2=A0=81=E2=A0=97=E2=A0=8A=E2=A0=95 --=20 =E2=99=89Id: kg:/m/0285kf1 =F0=9F=A6=AE=E2=99=89 -- ♉Id: kg:/m/0285kf1 🦮♉