#!/usr/bin/env bash set -eo pipefail [[ $DOKKU_TRACE ]] && set -x cmd-ps-help() { declare desc="help command" declare CMD="$1" local plugin_name="ps" local plugin_description="Manage container processes" if [[ "$CMD" == "$plugin_name:help" ]]; then echo -e "Usage: dokku $plugin_name[:COMMAND]" echo '' echo "$plugin_description" echo '' echo 'Additional commands:' fn-help-content | sort | column -c2 -t -s, elif [[ $(ps -o command= $PPID) == *"--all"* ]]; then fn-help-content else cat <, List processes running in app container(s) ps:inspect , Displays a sanitized version of docker inspect for an app ps:scale = [=...], Get/Set how many instances of a given process to run ps:start , Start app container(s) ps:startall, Starts all apps via command line ps:stop , Stop app container(s) ps:stopall, Stop all app container(s) ps:rebuild , Rebuild an app from source ps:rebuildall, Rebuild all apps from source ps:report [] [], Displays a process report for one or more apps ps:restart , Restart app container(s) ps:restartall, Restart all deployed app containers ps:restore, Start previously running apps e.g. after reboot ps:restart-policy , Shows the restart-policy for an app ps:set-restart-policy , Sets app restart-policy help_content }