]> pd.if.org Git - startuptools/blob - scripts/functions.rc
fb2b6d9353f261cd20e08ec70628679563384390
[startuptools] / scripts / functions.rc
1 status_starting() {
2         echo -n "[      ] Starting $1"
3 }
4
5 status_begin() {
6         echo -n "[      ] $*"
7 }
8
9 status_stopping() {
10         echo -n "[      ] Stopping $1"
11 }
12
13 status_ok() {
14         echo    "\r[  OK  ]"
15 }
16
17 status_fail() {
18         echo    "\r[FAILED]"
19 }
20
21 status_check() {
22         test $? -eq 0 && status_ok || status_fail
23 }