diff --git a/scripts/dev/start-daemon b/scripts/dev/start-daemon index 39ad5b7c..6f3791bf 100755 --- a/scripts/dev/start-daemon +++ b/scripts/dev/start-daemon @@ -13,6 +13,9 @@ source "$SUIBASE_DIR/scripts/common/__apps.sh" # shellcheck source=SCRIPTDIR/../common/__suibase-daemon.sh source "$SUIBASE_DIR/scripts/common/__suibase-daemon.sh" +exit_if_not_installed +exit_if_deps_missing + cli_mutex_lock "suibase_daemon" start_suibase_daemon diff --git a/scripts/dev/stop-daemon b/scripts/dev/stop-daemon index 70444f6f..5a65ed6a 100755 --- a/scripts/dev/stop-daemon +++ b/scripts/dev/stop-daemon @@ -14,6 +14,9 @@ source "$SUIBASE_DIR/scripts/common/__apps.sh" # shellcheck source=SCRIPTDIR/../common/__suibase-daemon.sh source "$SUIBASE_DIR/scripts/common/__suibase-daemon.sh" +exit_if_not_installed +exit_if_deps_missing + cli_mutex_lock "suibase_daemon" # Force stop the daemon by deleting the binary first. diff --git a/scripts/dev/update-daemon b/scripts/dev/update-daemon index da05a801..a56eef32 100755 --- a/scripts/dev/update-daemon +++ b/scripts/dev/update-daemon @@ -19,6 +19,9 @@ source "$SUIBASE_DIR/scripts/common/__apps.sh" # shellcheck source=SCRIPTDIR/../common/__suibase-daemon.sh source "$SUIBASE_DIR/scripts/common/__suibase-daemon.sh" +exit_if_not_installed +exit_if_deps_missing + cli_mutex_lock "suibase_daemon" # Stop the daemon. Force rebuild by deleting the binary.