..
This commit is contained in:
parent
7bb7aaf9e1
commit
93092cff04
1 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -f cronosagent.conf ]
|
||||
SCRIPT=$(readlink -f $0)
|
||||
DIRECTORY=$(dirname $SCRIPT)
|
||||
|
||||
if [ -f $DIRECTORY/cronosagent.conf ]
|
||||
then
|
||||
# Read configuration from text file
|
||||
source cronosagent.conf
|
||||
source $DIRECTORY/cronosagent.conf
|
||||
fi
|
||||
|
||||
if [ -f /etc/config/cronosagent ]
|
||||
|
@ -23,7 +26,7 @@ then
|
|||
SERVICE_MODE=$1
|
||||
fi
|
||||
|
||||
./cronosagent \
|
||||
$DIRECTORY/cronosagent \
|
||||
--trap-port 8162 \
|
||||
--repeater-number ${REPEATER_NUMBER} \
|
||||
--repeater-address ${REPEATER_ADDRESS} \
|
||||
|
|
Loading…
Add table
Reference in a new issue