2020-06-19 11:53:23

This commit is contained in:
monlor
2020-06-19 11:53:23 +08:00
parent 0caf17e92f
commit 37aa2192c4
12 changed files with 57 additions and 68 deletions

View File

@@ -194,7 +194,7 @@ remove_firewall_start(){
daemon() {
local binname="$(basename "${1}")"
if type nohup >/dev/null 2>&1; then
if type nohup &>/dev/null; then
nohup $@ &> ${mbroot}/var/log/${binname}.log &
else
$@ &> ${mbroot}/var/log/${binname}.log &