void-packages/srcpkgs/kea/files/kea-dhcp6/run
classabbyamp 351646d5bd *: add exec 2>&1 to all existing services
except when it already exists, of course
2023-02-09 21:36:13 -05:00

6 lines
192 B
Bash

#!/bin/sh
exec 2>&1
[ -r conf ] && . ./conf
[ -n "$WAIT_IFACE" ] && [ -z "$(ip -f inet6 address show "$WAIT_IFACE")" ] && exit 1
mkdir -p /run/kea
exec kea-dhcp6 ${OPTS:=-c /etc/kea/kea.conf}