aboutsummaryrefslogtreecommitdiffstats
path: root/cron
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-12-04 01:12:15 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-12-04 01:29:32 +0000
commit45b134f897572318f182aa5faa348c5bd39fa7ae (patch)
tree1dec0092e27d994750b39b809e88182515e4e705 /cron
parent9083b82a25bdb9c25e7da0cfb4ebe515186c71e1 (diff)
downloadverteco-45b134f897572318f182aa5faa348c5bd39fa7ae.tar.gz
ftpupload: decouple ftpupload from modbuslog
Allow ftpupload to be used as an independent program. This enables it to be used by both modbuslog and phidgetcontrol. The ftp stanza in /etc/modbuslog has been split out into a separate ftpupload configuration file located at /etc/ftpupload. ftpupload now reads the $UPLOADTYPE variable to determine which type of upload to execute. If $UPLOADTYPE has not been set, ftpupload will default to modbuslog.
Diffstat (limited to '')
-rw-r--r--cron/modbuslog2
-rw-r--r--cron/phidgetcontrol2
2 files changed, 2 insertions, 2 deletions
diff --git a/cron/modbuslog b/cron/modbuslog
index 58abb29..453ffff 100644
--- a/cron/modbuslog
+++ b/cron/modbuslog
@@ -3,4 +3,4 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
@reboot root /usr/sbin/modbuslog
-10 0 * * * root /usr/bin/ftpupload
+10 0 * * * root UPLOADTYPE=modbuslog /usr/bin/ftpupload
diff --git a/cron/phidgetcontrol b/cron/phidgetcontrol
index 7a6438b..32de0a8 100644
--- a/cron/phidgetcontrol
+++ b/cron/phidgetcontrol
@@ -3,4 +3,4 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
@reboot root /usr/sbin/phidgetcontrol
-10 0 * * * root /usr/bin/ftpupload
+10 0 * * * root UPLOADTYPE=phidgetcontrol /usr/bin/ftpupload