From 4fb76dd8925144319990069a7713f4a78ee5906e Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 4 Jun 2024 15:57:34 +0200 Subject: [PATCH] fix: Error logging for Samba daemon (#142) --- readme.md | 2 +- src/samba.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 5d1ab0a..e648693 100644 --- a/readme.md +++ b/readme.md @@ -321,7 +321,7 @@ kubectl apply -f kubernetes.yml * ### Is this project legal? - Yes, this project contains only open-source code and does not distribute any copyrighted material. Any product keys found in the code are just generic placeholders provided by Microsoft for trial purposes. So under all applicable laws, this project would be considered legal. + Yes, this project contains only open-source code and does not distribute any copyrighted material. Any product keys found in the code are just generic placeholders provided by Microsoft for trial purposes. So under all applicable laws, this project will be considered legal. ## Stars [![Stars](https://starchart.cc/dockur/windows-arm.svg?variant=adaptive)](https://starchart.cc/dockur/windows-arm) diff --git a/src/samba.sh b/src/samba.sh index 59280d0..cc865d7 100644 --- a/src/samba.sh +++ b/src/samba.sh @@ -75,7 +75,10 @@ fi echo " force group = root" } > "/etc/samba/smb.conf" -! smbd && smbd --debug-stdout +if ! smbd; then + error "Samba daemon failed to start!" + smbd -i --debug-stdout || true +fi # Enable Web Service Discovery wsdd -i "$interface" -p -n "$hostname" &