Skip to content

Commit

Permalink
base-files: redirect kill ouptut for ash, telnetd and dropbear
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
feckert authored and aparcar committed Jun 21, 2021
1 parent d8bfcc5 commit 40f533b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/base-files/files/lib/upgrade/stage2
Expand Up @@ -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
Expand Down

0 comments on commit 40f533b

Please sign in to comment.