I've found that you need to unmount the 1-wire mount point as well below is my init script, which you can edit and run.
Rgds, Nick. #!/bin/sh ######################################################################### # # owfs - init script # # v1.0 - Nov2010 - CrossN - Initial release # #USB="--usb" USB="--usb --altUSB --usb_flextime" OWSERVER_PIDFILE=/var/run/owserver.pid OWFS_PIDFILE=/var/run/owfs.pid OW_PORT="localhost:4304" ALIASES="--alias=/opt/weather/aliases" #ALIASES="" # http://owfs.org/index.php?page=owfs ERROR="--error_print=1 --error_level=1" OWFS_MOUNTPOINT="/var/1wire" OW_OPTS_GENERAL="$ERROR --Celsius --server=$OW_PORT $ALIASES" OWSERVER_CMD="/opt/owfs/bin/owserver $USB --pid_file=$OWSERVER_PIDFILE $OW_OPTS_GENERAL" OWFS_CMD="/opt/owfs/bin/owfs --allow_other --pid_file=$OWFS_PIDFILE --mountpoint=$OWFS_MOUNTPOINT $OW_OPTS_GENERAL" SLEEPSECS="5" getpid () { PIDFILE=$1 if [ ! -f $PIDFILE ] ; then echo "Error no PID file found at $PIDFILE" else cat $PIDFILE fi } killpid () { PIDFILE=$1 PID=`getpid $PIDFILE` if [ "$PID" != "" ] ; then echo "Stopping this pid $PID in $PIDFILE" pkill -9 $PID else echo "no PID in $PIDFILE" fi } stop() { if [ -f $OWFS_PIDFILE ] ; then echo "Stopping owfs" killpid $OWFS_PIDFILE umount $OWFS_MOUNTPOINT else echo "PIDFILE $OWFS_PIDFILE not found!" fi if [ -f $OWSERVER_PIDFILE ] ; then echo "Stopping owserver" killpid $OWSERVER_PIDFILE else echo "PIDFILE $OWSERVER_PIDFILE not found!" fi status } start () { if [ ! -f $OWSERVER_PIDFILE ] ; then echo "Starting owserver" echo "with : $OWSERVER_CMD" $OWSERVER_CMD 2>&1 echo "Sleeping for $SLEEPSECS" sleep $SLEEPSECS else echo "PIDFILE $OWSERVER_PIDFILE already found!" fi if [ ! -f $OWFS_PIDFILE ] ; then echo "Starting owfs" echo "with : $OWFS_CMD" $OWFS_CMD 2>&1 else echo "PIDFILE $OWFS_PIDFILE already found!" fi sleep 2 status } pidstatus () { PIDFILE=$1 PROCESS=$2 PID=`getpid $PIDFILE` if [ "$PID" != "" ] ; then echo "$PROCESS PID = $PID" ps -p $PID 2>/dev/null >/dev/null if [ "$?" != "0" ] ; then echo "Error $PROCESS process not found" else echo "$PROCESS Running" fi else echo "no PID in $PIDFILE" fi } status () { pidstatus $OWSERVER_PIDFILE "owserver" pidstatus $OWFS_PIDFILE "owfs" } restart () { stop start } case $1 in start) start ;; stop) stop ;; restart) restart ;; status) status ;; *) echo "Usage: $0 [status|stop|start|restart]" ;; esac # end script On Mon, Feb 28, 2011 at 5:08 PM, Jerry Scharf < sch...@lagunawayconsulting.com> wrote: > Just kill and restart owfs and it will do what you want. > > On 02/28/2011 09:03 AM, Mick Sulley wrote: > > Hi, > > > > I use the line > > > > /opt/owfs/bin/owfs --allow_other -C -d /dev/ttyUSB0 -m /var/1-wire/mnt > > > > to mount my 1-wire network so that I can read it with owfs. If I detect > > a problem with it I would like to un-mount it and start again. Is that > > possible without rebooting? I can't find anything in the help files > > > > Thanks > > > > Mick > > > > > > > ------------------------------------------------------------------------------ > > Free Software Download: Index, Search& Analyze Logs and other IT data in > > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > > generated by your applications, servers and devices whether physical, > virtual > > or in the cloud. Deliver compliance at lower cost and gain new business > > insights. http://p.sf.net/sfu/splunk-dev2dev > > _______________________________________________ > > Owfs-developers mailing list > > Owfs-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers >
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers