Actual data files created by onewireserver are here: [root@pmacs onewire]# pwd /var/lib/onewire [root@pmacs onewire]# dir onewireserver.txt onewireserver.txt.20070317 onewireserver.txt.20070512 onewireserver.txt.20070616 test_logging_20070709223535.log onewireserver.txt.20070210 onewireserver.txt.20070324 onewireserver.txt.20070519 onewireserver.txt.20070707 onewireserver.txt.20070217 onewireserver.txt.20070331 onewireserver.txt.20070526 test_logging_20070208211721.log onewireserver.txt.20070224 onewireserver.txt.20070407 onewireserver.txt.20070602 test_logging_20070208212042.log onewireserver.txt.20070303 onewireserver.txt.20070414 onewireserver.txt.20070609 test_logging_20070308172352.log the one wire server code is here [root@pmacs lib]# pwd /usr/local/stow/onewire-server/lib [root@pmacs lib]# dir ha7.rb ha7-save.rb onewireserver.rb soapserver.rb tempsensor.rb [root@pmacs lib]# the code that starts the onewireserver is here [root@pmacs init.d]# pwd /etc/init.d [root@pmacs init.d]# cat onewire_server #!/bin/sh # # arch-tag: init script for One-Wire server # Time-stamp: <2007-01-04 07:44:04 mike> # # chkconfig: 2345 85 20 # description: OneWire SOAP server daemon # # processname: tempServer PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin export PATH # source function library . /etc/rc.d/init.d/functions ONEWIRE_SERVER=tempServer.rb #if [ -f /etc/pmacs-server.cfg ] #then # ARGS=/etc/pmacs-server.cfg #else # ARGS= #fi start () { echo -n "Starting One-wire server: " if [ `whoami` = "root" ] then su - mars -c "cd /usr/local/stow/onewire-server/bin;./$ONEWIRE_SERVER $ARGS" && success || failure else $ONEWIRE_SERVER $ARGS && success || failure fi echo } stop () { echo -n "Stopping One-wire server: " killall -INT $ONEWIRE_SERVER sleep 3 if pidof -x $ONEWIRE_SERVER 1> /dev/null 2>&1 then failure else success fi echo } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo "Usage: $0 {stop|start|restart}" ;; esac exit 0 [root@pmacs init.d]# the configuration file for the onewire server appears to be here [root@pmacs bin]# pwd /usr/local/stow/onewire-server/bin [root@pmacs bin]# cat onewireconfig.rb # Config file is actually written in Ruby. How's that? # Some constants WET_HA7_IP = "ha7-01.mars.mbari.org" DRY_HA7_IP = "ha7-02.mars.mbari.org" def setConfig( config ) config[:nodaemon] = false config[:datadir] = "/var/lib/onewire" config[:tempsensors] = [ \ [WET_HA7_IP,"Below_Ciscos","B900000027CA8F28","Below the Ciscos"], [WET_HA7_IP,"Above_Ciscos_Outboard","40000000B491CF28","Above the Ciscos, outboard end"], [WET_HA7_IP,"Above_XDC","47000000A4F3AD28","Above the XDC"], [WET_HA7_IP,"Above_Ciscos_Inboard","EC00000027A23328","Above the Ciscos, inboard end"], [WET_HA7_IP,"Above_XLC","EE000000B4913B28","Above the XLC"], [WET_HA7_IP,"Above_ILC","92000000A4F27928","Above the ILC"], [DRY_HA7_IP,"NE_East","9C000000B4A89828","Inside NE East chassis"], [DRY_HA7_IP,"West_Edfa","06000000A4EC7428","Above W EDFA"], [DRY_HA7_IP,"East_Edfa","E6000000B4E6AC28","Above E EDFA"], [DRY_HA7_IP,"NE_West","6E00000027CD1E28","Inside NE West chassis"], [DRY_HA7_IP,"East_Edfa_Two","A1000000180B0528","Higher above E EDFA"], [DRY_HA7_IP,"Below_Dry_Chassis","88000000B4A59328","Below dryside chassis"] ] config[:banner] = "onewireconfig.rb" #logger = Logger.new(STDERR) #logger.level = Logger::DEBUG #config[:logger] = logger end [root@pmacs bin]#Untitled 1