Do not show errors about log not existing yet.

This commit is contained in:
Maniack Crudelis 2019-03-03 18:58:38 +01:00 committed by GitHub
parent 337a065b4a
commit 08e51f2680
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ ynh_systemd_action() {
local pid_tail=$!
else
# Read the specified log file
tail -F -n0 "$log_path" > "$templog" &
tail -F -n0 "$log_path" > "$templog" 2>&1 &
# Get the PID of the tail command
local pid_tail=$!
fi