SOLVED Start/Stop Apps with command

Vallevert

Dabbler
Joined
Apr 29, 2020
Messages
20
Hi !
I would like to start and stop my Apps with a command.
I searched on the forum and I found that is a bad idea.

But, I need to.
I want to stop my apps in a cron, create a zip of the config file, then restart.

How can I do ?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Or don't install anything and use the API directly:

midclt call chart.release.scale yourappname '{"replica_count": 0}' (stop)

midclt call chart.release.scale yourappname '{"replica_count": 1}' (start)
 

Vallevert

Dabbler
Joined
Apr 29, 2020
Messages
20
Or don't install anything and use the API directly:

midclt call chart.release.scale yourappname '{"replica_count": 0}' (stop)

midclt call chart.release.scale yourappname '{"replica_count": 1}' (start)
Thanks !
 
Top