mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
fix: bugfix
This commit is contained in:
@@ -30,7 +30,7 @@ start () {
|
||||
logsh "【$service】" "正在启动${appname}服务... "
|
||||
# open_port
|
||||
# write_firewall_start
|
||||
${mbroot}/apps/${appname}/bin/${appname} &> ${mbroot}/var/log/${appname}.log &
|
||||
daemon ${mbroot}/apps/${appname}/bin/${appname}
|
||||
logsh "【$service】" "启动${appname}服务完成!"
|
||||
|
||||
|
||||
|
||||
@@ -194,7 +194,11 @@ remove_firewall_start(){
|
||||
|
||||
daemon() {
|
||||
local binname="$(basename "${1}")"
|
||||
$@ &> ${mbroot}/var/log/${binname}.log &
|
||||
if type nohup >/dev/null 2>&1; then
|
||||
nohup $@ &> ${mbroot}/var/log/${binname}.log &
|
||||
else
|
||||
$@ &> ${mbroot}/var/log/${binname}.log &
|
||||
fi
|
||||
return $?
|
||||
}
|
||||
|
||||
|
||||
@@ -401,6 +401,7 @@ ipset_rules() {
|
||||
echo "ipset=/.microsoft.com/customize_white" >> ${mbtmp}/wblist.conf
|
||||
fi
|
||||
#黑白名单规则
|
||||
mkdir /tmp/etc/dnsmasq.d/
|
||||
if [ "$ss_mode" = "whitelist" -o "$ssg_mode" = "frgame" -o "$ss_mode" = "homemode" ]; then
|
||||
sed -e "s/^/-A nogfwnet &/g" -e "1 i\-N nogfwnet hash:net" ${mbroot}/apps/${appname}/config/chnroute.txt | ipset -R -!
|
||||
elif [ "$ss_mode" = "gfwlist" -o "$ssg_mode" = "cngame" ]; then
|
||||
|
||||
Reference in New Issue
Block a user