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

14 lines
203 B
Text
Raw Normal View History

2018-11-14 04:53:20 +00:00
#!/bin/sh
daemon="$(basename "${PWD}")"
if [ "${daemon}" = "staticd" ]; then
sv check zebra
elif [ "${daemon}" != "zebra" ]; then
sv check staticd
fi
[ -r conf ] && . ./conf
exec "${daemon}" $ARGS