13 lines
203 B
Bash
Executable file
13 lines
203 B
Bash
Executable file
#!/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
|