~whynothugo/superd-services

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] himitsud: remove socket after crash

Details
Message ID
<20230712110652.11432-1-edd@salkield.uk>
DKIM signature
missing
Download raw message
Patch: +1 -0
Currently if himitsud crashes, it leaves behind socket file
$XDG_RUNTIME_DIR/himitsu, which prevents himitsud from restarting.

This patch carefully checks on startup whether this file exists when
the current user is not running himitsud, and cleans it up if necessary.

---
 himitsud.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/himitsud.service b/himitsud.service
index 36db6d6..e9ae321 100644
--- a/himitsud.service
+++ b/himitsud.service
@@ -4,4 +4,5 @@ Documentation=man:himitsu(7)

[Service]
ExecStart=himitsud
ExecStartPre=sh -c 'if [ -n "$XDG_RUNTIME_DIR" ] && [ -S "$XDG_RUNTIME_DIR/himitsu" ]; then rm "$XDG_RUNTIME_DIR/himitsu"; fi'
Restart=always
-- 
2.40.1
Reply to thread Export thread (mbox)