From c5474714bee18273b34214292589191a19a72f1f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Apr 2026 18:28:44 +0000 Subject: [PATCH] install.sh: restart capture services instead of enable --now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit enable --now only starts a service that is not yet running — it leaves an already-running service untouched, so changes to .env credentials are never picked up without a manual restart. Switching to enable + restart means every install.sh run brings capture services in sync with the current sky-cam.conf and .env: new cameras start, reconfigured cameras restart, and nothing needs manual follow-up. https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index beb226d..a21c911 100755 --- a/install.sh +++ b/install.sh @@ -256,9 +256,11 @@ echo "" $SC daemon-reload for svc in "${capture_services[@]}"; do - $SC enable --now "${svc}.service" \ - && echo " enabled + started ${svc}.service" \ - || echo " WARNING: could not enable ${svc}.service" + if $SC enable "${svc}.service" && $SC restart "${svc}.service"; then + echo " enabled + started ${svc}.service" + else + echo " WARNING: could not enable/start ${svc}.service" + fi done for timer in "${timers[@]}"; do