Subject: bug#78576: closed (Re: shepherd believes a process is running while it isn't)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 24 May 2025 12:03:02 +0000

Your bug report

#78576: shepherd believes a process is running while it isn't

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78576: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78576
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: shepherd believes a process is running while it isn't
From: Attila Lendvai <[email-masked]>
To: [email-masked]
Cc: Attila Lendvai <[email-masked]>
Date: Sat, 24 May 2025 14:02:46 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

instead reported as: https://codeberg.org/shepherd/shepherd/issues/5

<#secure method=pgpmime mode=sign>
-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“I know that most men, including those at ease with problems of the greatest complexity, can seldom accept even the simplest and most obvious truth if it be such as would oblige them to admit the falsity of conclusions which they have delighted in explaining to colleagues, which they have proudly taught to others, and which they have woven, thread by thread, into the fabric of their lives.”
	— Leo Tolstoy (1828–1910)
Or in short: “Science advances one funeral at a time.”
	— Max Planck (1858–1947), paraphrased

Subject: shepherd believes a process is running while it isn't
From: Attila Lendvai <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sat, 24 May 2025 11:54:17 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

this happens on a recently pulled guix. it's been like this for a long time, i'm just only now getting around to finally report it.

in essence:

# herd status | grep bee
 + bee-0
 + bee-1
# herd restart bee-0
herd: error: exception caught while executing 'stop' on service 'bee-0':
In procedure getpgid: No such process
# herd restart bee-0
Service bee-0 is not running.
Service user-homes has been started.
Service bee-0 has been started.

judging from the daemon's own log i think the process simply quits with zero exit code (background info: it happens after some days of running when an external service is temporarily not responding).

the default respawn-limit of the service is not changed.

i don't see anything interesting/relevant in /var/log/messages

IIUC shepherd should be respawning the daemon, even if it quits with zero exit code, right?

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Political speech and writing are largely the defense of the indefensible.”
	— George Orwell (1903–1950), 'Politics and the English Language' (1946)