Allow cmake to configure the systemd unit’s user and group

This commit is contained in:
Emmanuel Gil Peyrot
2016-06-11 01:34:03 +01:00
parent 272c0e4995
commit ad15924ac3
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -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