Code Monkey home page Code Monkey logo

Comments (3)

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

What's the purpose for stopping multiple/all applications?

from heavy_script.

ChaosBlades avatar ChaosBlades commented on May 27, 2024

Currently trying to solve an unscheduled reboot issue I am having with ix and they wanted me to try to replicate with all applications stopped and I realized that was not easy to do without using the stop function in the UI which TrueCharts does not advise you doing.

from heavy_script.

Heavybullets8 avatar Heavybullets8 commented on May 27, 2024

While the proposed feature isn't currently planned due to its limited scope beyond testing and bug tracing, the issue will remain open for anyone interested in implementing it. The potential solution could involve calling heavyscript app --stop * or a similar command.

In the meantime, here's a simple script you can use to stop each application:

#!/bin/bash

# Retrieve application names
mapfile -t apps < <(cli -m csv -c 'app chart_release query name' | tail -n +2 | sort | tr -d " \t\r" | awk 'NF')

# Stop each application with heavyscript stop function
for app in "${apps[@]}"; do
    heavyscript app --stop "$app"
    echo
done

echo "All applications have been stopped."

Make sure to adjust the heavyscript app --stop "$app" command to match your heavyscript installation path, if it wasn't installed with the one-liner. For example: bash /root/heavy_script/heavy_script.sh app --stop "$app".

from heavy_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.