aboutsummaryrefslogtreecommitdiffstats
path: root/bin/srt
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2019-02-20 14:39:36 -0800
committerDavid Reyna <David.Reyna@windriver.com>2019-02-20 14:39:36 -0800
commit652a7ebc28edecbaac24a6fbb543544866037d29 (patch)
tree0b43d03a89b0315a7255ad2a0755c4daf12b47c2 /bin/srt
parent418f3dd3c2c2abad419246dfb1c851a85b5c3e8c (diff)
downloadsrtool-652a7ebc28edecbaac24a6fbb543544866037d29.zip
srtool-652a7ebc28edecbaac24a6fbb543544866037d29.tar.gz
srtool-652a7ebc28edecbaac24a6fbb543544866037d29.tar.bz2
srtool_update: improve update reporting and scheduling
Track the current running update task in ".srtupdate.task" to help track background update activity and overhead. Make calls to the update start/stop absolute paths to help track active SRTool tasks, especially between multiple servers. Signed-off-by: David Reyna <David.Reyna@windriver.com>
Diffstat (limited to 'bin/srt')
-rwxr-xr-xbin/srt4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/srt b/bin/srt
index 5b41693..ac358d4 100755
--- a/bin/srt
+++ b/bin/srt
@@ -81,7 +81,7 @@ webserverKillAll()
# Stop the Update app
if [ 0 -eq $no_auto_update ] ; then
- ./bin/common/srtool_update.py --cron-stop
+ ${SRT_BASE_DIR}/bin/common/srtool_update.py --cron-stop
fi
}
@@ -116,7 +116,7 @@ webserverStartAll()
# Start the Update app
if [ 0 -eq $no_auto_update ] ; then
- ./bin/common/srtool_update.py --cron-start > /dev/null 2>&1 &
+ ${SRT_BASE_DIR}/bin/common/srtool_update.py --cron-start > /dev/null 2>&1 &
echo "SRTool update service started at PID $!"
fi
return $retval