]> git.ipfire.org Git - thirdparty/pdns.git/blame - m4/pdns_with_service_user.m4
Wishy-washy
[thirdparty/pdns.git] / m4 / pdns_with_service_user.m4
CommitLineData
44e6ad36
PL
1AC_DEFUN([PDNS_WITH_SERVICE_USER], [
2 AC_MSG_CHECKING([What user and group will be used by service])
3 AC_ARG_WITH([service-user],
4 AS_HELP_STRING([--with-service-user], [User to use by service when running the service @<:@default=$1@:>@. Only the setuid setting and User in the systemd unit file are affected, the user is not created.]),
5 [AC_SUBST([service_user], [$withval])],
6 [AC_SUBST([service_user], [$1])]
7 )
8
9 AC_ARG_WITH([service-group],
10 AS_HELP_STRING([--with-service-group], [Group to use by service when running the service @<:@default=$1@:>@. Only the setgid setting and Group in the systemd unit file are affected, the group is not created.]),
11 [AC_SUBST([service_group], [$withval])],
12 [AC_SUBST([service_group], [$1])]
13 )
14
15 AS_IF([test -z "$service_user"], [AC_MSG_ERROR([No service user has been defined!])], [ : ])
16 AC_MSG_RESULT([$service_user])
17])