arunisaac pushed a commit to branch master
in repository guix.
commit 662e2285f502b65600b0b5a12c040d050be8999d
Author: Arun Isaac <[email protected]>
Date: Tue Nov 20 22:39:37 2018 +0530
services: wesnothd: Run as wesnothd user and group.
* gnu/services/games.scm (wesnothd-shepherd-service): Run as wesnothd user
and
group.
---
gnu/services/games.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/services/games.scm b/gnu/services/games.scm
index b9d78e0..b743f6a 100644
--- a/gnu/services/games.scm
+++ b/gnu/services/games.scm
@@ -65,7 +65,8 @@
(modules '((gnu build shepherd)))
(start #~(make-forkexec-constructor/container
(list #$(file-append package "/bin/wesnothd")
- "-p" #$(number->string port))))
+ "-p" #$(number->string port))
+ #:user "wesnothd" #:group "wesnothd"))
(stop #~(make-kill-destructor)))))))
(define wesnothd-service-type