|| { } or command must be a function
This commit is contained in:
parent
f933ac1069
commit
121b6f9fad
|
@ -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 & }
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue