|| { } or command must be a function

This commit is contained in:
fred 2024-04-20 23:09:15 +02:00
parent f933ac1069
commit 121b6f9fad
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ fi
ncrunning=$(ps axf --sort=+utime | grep -w 'node_exporter' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1)
[[ $ncrunning ]] \
&& echo "RESTARTING" && kill -HUP $ncrunning \
|| /usr/local/bin/node_exporter &
|| { /usr/local/bin/node_exporter & }