File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # Linux Deploy Component
2+ # (c) Anton Skshidlevsky <meefik@gmail.com>, GPLv3
3+
4+ NAME="power"
5+ DESC="Power mangaement"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ # Linux Deploy Component
3+ # (c) Anton Skshidlevsky <meefik@gmail.com>, GPLv3
4+
5+ do_start ()
6+ {
7+ if [ -n " ${POWER_TRIGGER} " ]; then
8+ msg " :: Starting ${COMPONENT} ... "
9+ chroot_exec -u root " ${POWER_TRIGGER} start"
10+ fi
11+ return 0
12+ }
13+
14+ do_stop ()
15+ {
16+ if [ -n " ${POWER_TRIGGER} " ]; then
17+ msg " :: Stopping ${COMPONENT} ... "
18+ chroot_exec -u root " ${POWER_TRIGGER} stop"
19+ fi
20+ return 0
21+ }
22+
23+ do_help ()
24+ {
25+ cat << EOF
26+ --power-trigger="${POWER_TRIGGER} "
27+ Path to a script inside the container to process power changes.
28+
29+ EOF
30+ }
You can’t perform that action at this time.
0 commit comments