base-files: redirect kill ouptut for ash, telnetd and dropbear
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 9 Feb 2021 15:10:10 +0000 (16:10 +0100)
committerPaul Spooren <mail@aparcar.org>
Mon, 21 Jun 2021 01:15:32 +0000 (15:15 -1000)
If one of the programmes is not running, then we see the following
output in the logs.

`killall: telnetd: no process killed`

To ensure that the log is clean, redirect the output to /dev/null

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
package/base-files/files/lib/upgrade/stage2

index f2f3cd439a747e80da9f7c22d75325983eb9868b..13c3622f382dd07e3a425fdf2e91aee09dfe73ed 100755 (executable)
@@ -137,9 +137,9 @@ for service in /etc/init.d/*; do
        ubus call service delete '{ "name": "'"$service"'" }' 2>/dev/null
 done
 
-killall -9 telnetd
-killall -9 dropbear
-killall -9 ash
+killall -9 telnetd 2>/dev/null
+killall -9 dropbear 2>/dev/null
+killall -9 ash 2>/dev/null
 
 kill_remaining TERM
 sleep 4