Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | #!/bin/echo ERROR: This script needs to be sourced. Please run as . |
| 2 | |
| 3 | # toaster - shell script to start Toaster |
| 4 | |
| 5 | # Copyright (C) 2013-2015 Intel Corp. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0-or-later |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | HELP=" |
Brad Bishop | 5dd7cbb | 2018-09-05 22:26:40 -0700 | [diff] [blame] | 11 | Usage: source toaster start|stop [webport=<address:port>] [noweb] [nobuild] [toasterdir] |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 12 | Optional arguments: |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | [nobuild] Setup the environment for capturing builds with toaster but disable managed builds |
| 14 | [noweb] Setup the environment for capturing builds with toaster but don't start the web server |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 15 | [webport] Set the development server (default: localhost:8000) |
Brad Bishop | 5dd7cbb | 2018-09-05 22:26:40 -0700 | [diff] [blame] | 16 | [toasterdir] Set absolute path to be used as TOASTER_DIR (default: BUILDDIR/../) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 17 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | custom_extention() |
| 20 | { |
| 21 | custom_extension=$BBBASEDIR/lib/toaster/orm/fixtures/custom_toaster_append.sh |
| 22 | if [ -f $custom_extension ] ; then |
| 23 | $custom_extension $* |
| 24 | fi |
| 25 | } |
| 26 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 27 | databaseCheck() |
| 28 | { |
| 29 | retval=0 |
| 30 | # you can always add a superuser later via |
| 31 | # ../bitbake/lib/toaster/manage.py createsuperuser --username=<ME> |
| 32 | $MANAGE migrate --noinput || retval=1 |
| 33 | |
| 34 | if [ $retval -eq 1 ]; then |
| 35 | echo "Failed migrations, aborting system start" 1>&2 |
| 36 | return $retval |
| 37 | fi |
| 38 | # Make sure that checksettings can pick up any value for TEMPLATECONF |
| 39 | export TEMPLATECONF |
| 40 | $MANAGE checksettings --traceback || retval=1 |
| 41 | |
| 42 | if [ $retval -eq 1 ]; then |
| 43 | printf "\nError while checking settings; aborting\n" |
| 44 | return $retval |
| 45 | fi |
| 46 | |
| 47 | return $retval |
| 48 | } |
| 49 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 50 | webserverKillAll() |
| 51 | { |
| 52 | local pidfile |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 53 | if [ -f ${BUILDDIR}/.toastermain.pid ] ; then |
| 54 | custom_extention web_stop_postpend |
| 55 | else |
| 56 | custom_extention noweb_stop_postpend |
| 57 | fi |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 58 | for pidfile in ${BUILDDIR}/.toastermain.pid ${BUILDDIR}/.runbuilds.pid; do |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | if [ -f ${pidfile} ]; then |
| 60 | pid=`cat ${pidfile}` |
| 61 | while kill -0 $pid 2>/dev/null; do |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 62 | kill -SIGTERM $pid 2>/dev/null |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 63 | sleep 1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 64 | done |
| 65 | rm ${pidfile} |
| 66 | fi |
| 67 | done |
| 68 | } |
| 69 | |
| 70 | webserverStartAll() |
| 71 | { |
| 72 | # do not start if toastermain points to a valid process |
| 73 | if ! cat "${BUILDDIR}/.toastermain.pid" 2>/dev/null | xargs -I{} kill -0 {} ; then |
| 74 | retval=1 |
| 75 | rm "${BUILDDIR}/.toastermain.pid" |
| 76 | fi |
| 77 | |
| 78 | retval=0 |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 79 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 80 | # check the database |
| 81 | databaseCheck || return 1 |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 82 | |
| 83 | echo "Starting webserver..." |
| 84 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 85 | $MANAGE runserver --noreload "$ADDR_PORT" \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 86 | </dev/null >>${BUILDDIR}/toaster_web.log 2>&1 \ |
| 87 | & echo $! >${BUILDDIR}/.toastermain.pid |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 88 | |
| 89 | sleep 1 |
| 90 | |
| 91 | if ! cat "${BUILDDIR}/.toastermain.pid" | xargs -I{} kill -0 {} ; then |
| 92 | retval=1 |
| 93 | rm "${BUILDDIR}/.toastermain.pid" |
| 94 | else |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 95 | echo "Toaster development webserver started at http://$ADDR_PORT" |
| 96 | echo -e "\nYou can now run 'bitbake <target>' on the command line and monitor your build in Toaster.\nYou can also use a Toaster project to configure and run a build.\n" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 97 | custom_extention web_start_postpend $ADDR_PORT |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 98 | fi |
| 99 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 100 | return $retval |
| 101 | } |
| 102 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 103 | INSTOPSYSTEM=0 |
| 104 | |
| 105 | # define the stop command |
| 106 | stop_system() |
| 107 | { |
| 108 | # prevent reentry |
| 109 | if [ $INSTOPSYSTEM -eq 1 ]; then return; fi |
| 110 | INSTOPSYSTEM=1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 111 | webserverKillAll |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 112 | # unset exported variables |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 113 | unset TOASTER_DIR |
| 114 | unset BITBAKE_UI |
| 115 | unset BBBASEDIR |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 116 | trap - SIGHUP |
| 117 | #trap - SIGCHLD |
| 118 | INSTOPSYSTEM=0 |
| 119 | } |
| 120 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 121 | verify_prereq() { |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 122 | # Verify Django version |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 123 | reqfile=$(python3 -c "import os; print(os.path.realpath('$BBBASEDIR/toaster-requirements.txt'))") |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 124 | exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/' |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 125 | # expand version parts to 2 digits to support 1.10.x > 1.8 |
| 126 | # (note:helper functions hard to insert in-line) |
| 127 | exp=$exp'import sys,django;' |
| 128 | exp=$exp'version=["%02d" % int(n) for n in django.get_version().split(".")];' |
| 129 | exp=$exp'vmin=["%02d" % int(n) for n in "\2".split(".")];' |
| 130 | exp=$exp'vmax=["%02d" % int(n) for n in "\4".split(".")];' |
| 131 | exp=$exp'sys.exit(not (version \1 vmin and version \3 vmax))' |
| 132 | exp=$exp'/p' |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 133 | if ! sed -n "$exp" $reqfile | python3 - ; then |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 134 | req=`grep ^Django $reqfile` |
| 135 | echo "This program needs $req" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 136 | echo "Please install with pip3 install -r $reqfile" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 137 | return 2 |
| 138 | fi |
| 139 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 140 | return 0 |
| 141 | } |
| 142 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 143 | # read command line parameters |
| 144 | if [ -n "$BASH_SOURCE" ] ; then |
| 145 | TOASTER=${BASH_SOURCE} |
| 146 | elif [ -n "$ZSH_NAME" ] ; then |
| 147 | TOASTER=${(%):-%x} |
| 148 | else |
| 149 | TOASTER=$0 |
| 150 | fi |
| 151 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 152 | export BBBASEDIR=`dirname $TOASTER`/.. |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 153 | MANAGE="python3 $BBBASEDIR/lib/toaster/manage.py" |
Brad Bishop | c4ea075 | 2018-11-15 14:30:15 -0800 | [diff] [blame] | 154 | if [ -z "$OE_ROOT" ]; then |
| 155 | OE_ROOT=`dirname $TOASTER`/../.. |
| 156 | fi |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 157 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 158 | # this is the configuraton file we are using for toaster |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 159 | # we are using the same logic that oe-setup-builddir uses |
| 160 | # (based on TEMPLATECONF and .templateconf) to determine |
| 161 | # which toasterconf.json to use. |
| 162 | # note: There are a number of relative path assumptions |
| 163 | # in the local layers that currently make using an arbitrary |
| 164 | # toasterconf.json difficult. |
| 165 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 166 | . $OE_ROOT/.templateconf |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 167 | if [ -n "$TEMPLATECONF" ]; then |
| 168 | if [ ! -d "$TEMPLATECONF" ]; then |
| 169 | # Allow TEMPLATECONF=meta-xyz/conf as a shortcut |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 170 | if [ -d "$OE_ROOT/$TEMPLATECONF" ]; then |
| 171 | TEMPLATECONF="$OE_ROOT/$TEMPLATECONF" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 172 | fi |
| 173 | fi |
| 174 | fi |
| 175 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 176 | unset OE_ROOT |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 177 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 178 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 179 | WEBSERVER=1 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 180 | export TOASTER_BUILDSERVER=1 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 181 | ADDR_PORT="localhost:8000" |
Brad Bishop | 5dd7cbb | 2018-09-05 22:26:40 -0700 | [diff] [blame] | 182 | TOASTERDIR=`dirname $BUILDDIR` |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 183 | unset CMD |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 184 | for param in $*; do |
| 185 | case $param in |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 186 | noweb ) |
| 187 | WEBSERVER=0 |
| 188 | ;; |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 189 | nobuild ) |
| 190 | TOASTER_BUILDSERVER=0 |
| 191 | ;; |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 192 | start ) |
| 193 | CMD=$param |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 194 | ;; |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 195 | stop ) |
| 196 | CMD=$param |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 197 | ;; |
| 198 | webport=*) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 199 | ADDR_PORT="${param#*=}" |
| 200 | # Split the addr:port string |
| 201 | ADDR=`echo $ADDR_PORT | cut -f 1 -d ':'` |
| 202 | PORT=`echo $ADDR_PORT | cut -f 2 -d ':'` |
| 203 | # If only a port has been speified then set address to localhost. |
| 204 | if [ $ADDR = $PORT ] ; then |
| 205 | ADDR_PORT="localhost:$PORT" |
| 206 | fi |
| 207 | ;; |
Brad Bishop | 5dd7cbb | 2018-09-05 22:26:40 -0700 | [diff] [blame] | 208 | toasterdir=*) |
| 209 | TOASTERDIR="${param#*=}" |
| 210 | ;; |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 211 | --help) |
| 212 | echo "$HELP" |
| 213 | return 0 |
| 214 | ;; |
| 215 | *) |
| 216 | echo "$HELP" |
| 217 | return 1 |
| 218 | ;; |
| 219 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 220 | esac |
| 221 | done |
| 222 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 223 | if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then |
| 224 | echo "Error: This script needs to be sourced. Please run as . $TOASTER" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 225 | return 1 |
| 226 | fi |
| 227 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 228 | verify_prereq || return 1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 229 | |
| 230 | # We make sure we're running in the current shell and in a good environment |
| 231 | if [ -z "$BUILDDIR" ] || ! which bitbake >/dev/null 2>&1 ; then |
| 232 | echo "Error: Build environment is not setup or bitbake is not in path." 1>&2 |
| 233 | return 2 |
| 234 | fi |
| 235 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 236 | # this defines the dir toaster will use for |
| 237 | # 1) clones of layers (in _toaster_clones ) |
| 238 | # 2) the build dir (in build) |
| 239 | # 3) the sqlite db if that is being used. |
| 240 | # 4) pid's we need to clean up on exit/shutdown |
Brad Bishop | 5dd7cbb | 2018-09-05 22:26:40 -0700 | [diff] [blame] | 241 | export TOASTER_DIR=$TOASTERDIR |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 242 | export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE TOASTER_DIR" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 243 | |
| 244 | # Determine the action. If specified by arguments, fine, if not, toggle it |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 245 | if [ "$CMD" = "start" ] ; then |
| 246 | if [ -n "$BBSERVER" ]; then |
| 247 | echo " Toaster is already running. Exiting..." |
| 248 | return 1 |
| 249 | fi |
| 250 | elif [ "$CMD" = "" ]; then |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 251 | echo "No command specified" |
| 252 | echo "$HELP" |
| 253 | return 1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 254 | fi |
| 255 | |
| 256 | echo "The system will $CMD." |
| 257 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 258 | # Execute the commands |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 259 | custom_extention toaster_prepend $CMD $ADDR_PORT |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 260 | |
| 261 | case $CMD in |
| 262 | start ) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 263 | # check if addr:port is not in use |
| 264 | if [ "$CMD" == 'start' ]; then |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 265 | if [ $WEBSERVER -gt 0 ]; then |
| 266 | $MANAGE checksocket "$ADDR_PORT" || return 1 |
| 267 | fi |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 268 | fi |
| 269 | |
| 270 | # Create configuration file |
| 271 | conf=${BUILDDIR}/conf/local.conf |
| 272 | line='INHERIT+="toaster buildhistory"' |
| 273 | grep -q "$line" $conf || echo $line >> $conf |
| 274 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 275 | if [ $WEBSERVER -eq 0 ] ; then |
| 276 | # Do not update the database for "noweb" unless |
| 277 | # it does not yet exist |
| 278 | if [ ! -f "$TOASTER_DIR/toaster.sqlite" ] ; then |
| 279 | if ! databaseCheck; then |
| 280 | echo "Failed ${CMD}." |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 281 | return 4 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 282 | fi |
| 283 | fi |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 284 | custom_extention noweb_start_postpend $ADDR_PORT |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 285 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 286 | if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then |
| 287 | echo "Failed ${CMD}." |
| 288 | return 4 |
| 289 | fi |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 290 | export BITBAKE_UI='toasterui' |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 291 | if [ $TOASTER_BUILDSERVER -eq 1 ] ; then |
| 292 | $MANAGE runbuilds \ |
| 293 | </dev/null >>${BUILDDIR}/toaster_runbuilds.log 2>&1 \ |
| 294 | & echo $! >${BUILDDIR}/.runbuilds.pid |
| 295 | else |
| 296 | echo "Toaster build server not started." |
| 297 | fi |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 298 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 299 | # set fail safe stop system on terminal exit |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 300 | trap stop_system SIGHUP |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 301 | echo "Successful ${CMD}." |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 302 | custom_extention toaster_postpend $CMD $ADDR_PORT |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 303 | return 0 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 304 | ;; |
| 305 | stop ) |
| 306 | stop_system |
| 307 | echo "Successful ${CMD}." |
| 308 | ;; |
| 309 | esac |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 310 | custom_extention toaster_postpend $CMD $ADDR_PORT |
| 311 | |