1 Star 0 Fork 3

bryan/adsb-scripts

forked from 小孟/adsb-scripts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
biastee-disable.sh 662 Bytes
一键复制 编辑 原始数据 按行查看 历史
Matthias Wirth 提交于 2022-02-28 10:40 . stop service before daemon-reload
#!/bin/bash
set -e
ipath=/usr/local/share/adsb-wiki/biastee
APPS="dump1090-fa readsb"
for APP in $APPS; do
if systemctl show $APP 2>/dev/null | grep -qs 'UnitFileState=enabled'; then
systemctl stop $APP || true
fi
done
for APP in $APPS; do
rm -f /etc/systemd/system/$APP.service.d/bias-t.conf
done
systemctl daemon-reload
for APP in $APPS; do
if systemctl show $APP 2>/dev/null | grep -qs 'UnitFileState=enabled'; then
systemctl stop $APP || true
/usr/local/share/adsb-wiki/biastee/rtl_biast/build/src/rtl_biast -b 0 || true
systemctl restart $APP || true
fi
done
rm -rf $ipath
echo ----- all done ------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bryan007/adsb-scripts.git
git@gitee.com:bryan007/adsb-scripts.git
bryan007
adsb-scripts
adsb-scripts
master

搜索帮助