From ad15924ac3f0852214fd35d93482fc18dbbe4bec Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 11 Jun 2016 01:34:03 +0100 Subject: =?UTF-8?q?Allow=20cmake=20to=20configure=20the=20systemd=20unit?= =?UTF-8?q?=E2=80=99s=20user=20and=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index bb13460..4559201 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -267,6 +267,12 @@ else() set(SYSTEMD_SERVICE_TYPE "simple") set(WATCHDOG_SEC "") endif() +if(NOT DEFINED SERVICE_USER) + set(SERVICE_USER "nobody") +endif() +if(NOT DEFINED SERVICE_GROUP) + set(SERVICE_GROUP "nobody") +endif() configure_file(unit/biboumi.service.cmake biboumi.service) # The date MUST be in english format -- cgit v1.2.3