void-packages/srcpkgs/frr/files/frr-generic/run

15 lines
213 B
Bash
Executable File

#!/bin/sh
exec 2>&1
daemon="$(basename "${PWD}")"
if [ "${daemon}" = "staticd" ]; then
sv check zebra
elif [ "${daemon}" != "zebra" ]; then
sv check staticd
fi
[ -r conf ] && . ./conf
exec "${daemon}" $ARGS