home: shepherd: Prevent launching the second instance.
authorAndrew Tropin <andrew@trop.in>
Tue, 12 Apr 2022 08:30:58 +0000 (11:30 +0300)
committerLudovic Courtès <ludo@gnu.org>
Tue, 12 Apr 2022 21:30:09 +0000 (23:30 +0200)
commit8805c7eab1d375846dd648065979d8d1a062f176
tree37bf3777096bc235d9856eb86bdbaa2152a5fa51
parent6a69e41c1783fa2eafd06cf1844d680ed1a09f65
home: shepherd: Prevent launching the second instance.

Fixes <https://issues.guix.gnu.org/54545>.

* gnu/home/services/shepherd.scm (launch-shepherd-gexp): Launch shepherd
if and only if its socket file does not already exist.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/home/services/shepherd.scm