4
Fork 0
This commit is contained in:
R3ABM Artem 2016-08-03 12:25:57 +04:00
parent 7bb7aaf9e1
commit 93092cff04

View file

@ -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} \