services: wesnothd: Run as wesnothd user and group.

* gnu/services/games.scm (wesnothd-shepherd-service): Run as wesnothd user and
group.
This commit is contained in:
Arun Isaac 2018-11-20 22:39:37 +05:30
parent 5e369f8ab9
commit 662e2285f5
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -65,7 +65,8 @@ (define wesnothd-shepherd-service
(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