Initial refactoring
Renamed rhizomatica_base_system to rhizo_base Split up the init.pp in different subclasses More work to follow
This commit is contained in:
parent
7b938abede
commit
1c7dffc32a
192 changed files with 547 additions and 430 deletions
11
modules/rhizo_base/files/bin/monitor_amp.sh
Executable file
11
modules/rhizo_base/files/bin/monitor_amp.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
RHIZO_SCRIPT="/home/rhizomatica/bin"
|
||||
. $RHIZO_SCRIPT/vars.sh
|
||||
LOGFILE="/var/log/monitor_amp.log"
|
||||
|
||||
$RHIZO_SCRIPT/check_amp_status.sh | grep -q OFF
|
||||
if [ $? == 0 ]; then
|
||||
logc "Amplifier is OFF! Turn on amp"
|
||||
$RHIZO_SCRIPT/turn_on_amplifier.sh >/dev/null 2>&1
|
||||
logc 'Procedure completed'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue