From 0abaa1e852165a7322b727fc952503cf962970ff Mon Sep 17 00:00:00 2001 From: Matthias Jaros Date: Mon, 3 Aug 2026 14:59:48 +0200 Subject: Log to stdout using logfile and tail -f. So everything is together in docker log visible --- src/init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/init') diff --git a/src/init b/src/init index fd5bb12..0dfad14 100755 --- a/src/init +++ b/src/init @@ -183,9 +183,12 @@ for repoConfig in $repos end # create writable log file for run script -touch $_LOG && chmod 777 $_LOG +truncate -s 0 $_LOG && chmod 777 $_LOG setupSSH; or return $status +# grep log in background +tail -f $_LOG & + # run ssh daemon exec /usr/sbin/sshd -D -e -- cgit v1.3.1