mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
FX.25 - Added support for logging and enabling debuging
This commit is contained in:
@@ -16,6 +16,8 @@ Description=EmComm Tools Dire Wolf simple packet service
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/emcomm-tools/bin/et-direwolf start simple
|
||||
#StandardOutput=append:/tmp/et/et.log
|
||||
|
||||
Restart=no
|
||||
|
||||
[Install]
|
||||
|
||||
@@ -14,8 +14,14 @@
|
||||
|
||||
DIREWOLF_CONF_FILE=${ET_HOME}/conf/template.d/packet/direwolf.conf
|
||||
|
||||
# FLags to enable FX.25 and debugging
|
||||
FX25_OPTS="-X 16 -d x"
|
||||
[ -z ${ET_DEBUG} ] && ET_DEBUG=0
|
||||
|
||||
# Enable FX.25
|
||||
if [ "${ET_DEBUG}" -eq 1 ]; then
|
||||
FX25_OPTS="-X 16 -d x"
|
||||
else
|
||||
FX25_OPTS="-X 16"
|
||||
fi
|
||||
|
||||
usage() {
|
||||
echo "usage: $(basename $0) <command> <type>"
|
||||
|
||||
Reference in New Issue
Block a user