From: Lars Rustand <rustand.lars@gmail.com>
To: 67802@debbugs.gnu.org
Subject: bug#67802: Shepherd is not able to run simple networked programs as services
Date: Fri, 15 Dec 2023 19:00:45 +0100 [thread overview]
Message-ID: <87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set> (raw)
In-Reply-To: <877clje05x.fsf@yoga.mail-host-address-is-not-set>
Lars Rustand <rustand.lars@gmail.com> writes:
> Hello, I have created two very simple shepherd services for two
> different mail programs (offlineimap and davmail). Both of the programs
> are able to run without problem when ran from the commandline, but both
> of them fail with networking related errors when I try to run them as
> shepherd services.
...
> They both seem to fail when opening an *outgoing* socket, but davmail
> seems to be able to start *listening* on several ports just fine.
So, I figured this out. It had nothing to do with networking even though
it looked like it. The problem was that I had cargo cult-copied a
#:pid-file parameter from another service, believing that this was just
a path were Shepherd could create a pid-file for the service, but
Shepherd was in fact expecting the program to create the pid-file. So
when the program did not create this pid-file then Shepherd killed the
program.
So the original bug I reported is in fact not a bug at all and can be
closed. However, the error handling in Shepherd could be improved in
order to make it more clear what is happening.
next prev parent reply other threads:[~2023-12-15 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-12 17:43 bug#67802: Shepherd is not able to run simple networked programs as services Lars Rustand
2023-12-15 18:00 ` Lars Rustand [this message]
2023-12-17 22:02 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttoj1gdv.fsf@yoga.mail-host-address-is-not-set \
--to=rustand.lars@gmail.com \
--cc=67802@debbugs.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/guix.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.