summary refs log tree commit diff
path: root/service.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/service.c b/service.c
index ec7ac68..e27437f 100644
--- a/service.c
+++ b/service.c
@@ -184,6 +184,9 @@ void serviceStart(struct Service *service) {
 	error = setgid(serviceGID);
 	if (error) err(ExitNoExec, "setgid");
 
+	error = setgroups(1, &serviceGID);
+	if (error) err(ExitNoExec, "setgroups");
+
 	error = setuid(serviceUID);
 	if (error) err(ExitNoExec, "setuid");