This was possible before by adding this to the configuration, but this
patch adds a sensible default.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
--disable-gnutls \
--enable-dns-over-tls \
--with-lua \
- --without-net-snmp
+ --without-net-snmp \
+ --with-service-user=dnsdist \
+ --with-service-group=dnsdist
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
ulimit -n 65536
# Starting daemon
- /usr/bin/dnsdist --supervised ${ARGS} >/dev/null &
+ /usr/bin/dnsdist --supervised --uid dnsdist --gid dnsdist ${ARGS} >/dev/null &
evaluate_retval
;;
#
. /opt/pakfire/lib/functions.sh
+# Create group
+if ! getent group dnsdist >/dev/null; then
+ groupadd -r dnsdist
+fi
+
+# Create user
+if ! getent passwd dnsdist >/dev/null; then
+ useradd -r -g dnsdist -d /var/empty -s /sbin/nologin \
+ -c "dnsdist daemon" dnsdist
+fi
+
extract_files
restore_backup "${NAME}"