GNU bug report logs -
#34407
Shepherd won't close socket on exit
Previous Next
Reported by: nly <nly <at> disroot.org>
Date: Sat, 9 Feb 2019 19:58:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
nly <nly <at> 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 <at> uf ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: No such file or directory
> nly <at> uf ~$ shepherd
> Service root has been started.
> nly <at> uf ~$ herd status
> Started:
> + root
> Stopped:
> - icecat
> - jack
> - mpv
> - mpv-jack
> - tor
> - transmission
> nly <at> uf ~$ herd stop root
> nly <at> uf ~$ herd status
> error: connect: /run/user/1000/shepherd/socket: Connection refused
> nly <at> uf ~$ shepherd
> Service root has been started.
> nly <at> 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 <at> 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
This bug report was last modified 6 years and 49 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.