unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: nly <nly@disroot.org>
Cc: 34407@debbugs.gnu.org
Subject: bug#34407: Acknowledgement (Shepherd won't close socket on exit)
Date: Wed, 13 Feb 2019 18:05:11 -0500	[thread overview]
Message-ID: <871s4b1e8o.fsf@gmail.com> (raw)
In-Reply-To: <87zhr44sro.fsf@disroot.org> (nly's message of "Sun, 10 Feb 2019 01:51:47 +0530")

Hi,

nly <nly@disroot.org> writes:

> Looks like I pasted something wrong in the previous message. I realized
> after I saw it on the mail.
>
> This time I've checked it twice. Left the shepherd in a weird limbo
> where connection is refused to the old socket and cannot create new
> connection. 
>
> Ofcourse, i can `rm /run/user/1000/shepherd/socket`
> --------------------------------------------------------------------------------
> nly@uf ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: No such file or directory
> nly@uf ~$ shepherd
> Service root has been started.
> nly@uf ~$ herd status
> Started:
>  + root
> Stopped:
>  - icecat
>  - jack
>  - mpv
>  - mpv-jack
>  - tor
>  - transmission
> nly@uf ~$ herd stop root
> nly@uf ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: Connection refused
> nly@uf ~$ shepherd
> Service root has been started.
> nly@uf ~$ Backtrace:
>            3 (primitive-load "/run/current-system/profile/bin/shepherd")
> In shepherd.scm:
>    250:24  2 (main . _)
>      48:6  1 (open-server-socket _)
> In unknown file:
>            0 (bind #<input-output: socket 13> #(1 "/run/user/1000/shepherd/socket") #)
>
> ERROR: In procedure bind:
> In procedure bind: Address already in use
>   C-c C-c
> nly@uf ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: Connection refused

This has been annoying me as well; my current workaround is to put this
in my ~/.xsession:

--8<---------------cut here---------------start------------->8---
# Start user services
rm -f /run/user/1000/shepherd/socket
shepherd
--8<---------------cut here---------------end--------------->8---

Maxim

  reply	other threads:[~2019-02-13 23:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-09 19:56 bug#34407: Shepherd won't close socket on exit nly
2019-02-09 20:21 ` bug#34407: Acknowledgement (Shepherd won't close socket on exit) nly
2019-02-13 23:05   ` Maxim Cournoyer [this message]
2019-02-17  3:38 ` bug#34407: [PATCH] shepherd: Delete the socket file upon exit 宋文武
     [not found] ` <87ef87w0d3.fsf@member.fsf.org>
2019-02-19 19:08   ` Danny Milosavljevic
     [not found]   ` <20190219200900.12407d94@scratchpost.org>
2019-02-23  8:53     ` 宋文武
2019-04-08  8:58   ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871s4b1e8o.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=34407@debbugs.gnu.org \
    --cc=nly@disroot.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).