containers-matterbridge/matterbridged.sh

20 lines
329 B
Bash
Raw Normal View History

2022-03-19 18:14:29 +00:00
#!/bin/sh
set -e
pid=/run/matterbridge.pid
log=/tmp/matterbridge.log
cnf=/etc/matterbridge/matterbridge.toml
case $1 in
start)
daemonize -a -e ${log} -o ${log} -p ${pid} -l ${pid} /usr/bin/matterbridge -conf ${cnf}
;;
stop)
test -f ${pid} || exit 0
cat ${pid} | xargs -r kill
rm -f ${pid}
;;
esac