Greetings,
Although there are stop start scripts for owserver, owftpd, and owhttpd
in the /etc/init.d directory there is not one for owfs.
I tried to create one by editing one of the similar scripts (owhttpd) as
mentioned before but with only partial success, the daemon would start
but gave strange results due to the config being read twice, the deamon
would not stop and had to be killed manually.
The problem was found to be because the instance of owfs on the path in
/usr/bin is a shell script which executes the real owfs in /usr/lib/owfs
with the config passed on the command line.
The solution was to alter the init.d script to use the real executable
in /usr/lib/owfs this solved both problems.
Below is a copy of the owfs init.d script header I'm now using, the
remainder is the same as the others.
I still have a problem using device alias with owfs which I'm investigating
hth David.
#!/bin/sh
### BEGIN INIT INFO
# Provides: owfs
# Required-Start: $remote_fs $network $syslog $named
# Required-Stop: $remote_fs $network $syslog $named
# Should-Start: owserver
# Should-Stop: owserver
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: 1-wire file system
# Description: Start and stop the 1-wire file system.
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
CONFFILE=/etc/owfs.conf
DESC="1-Wire file system"
NAME="owfs"
DAEMON=*/usr/lib/owfs/*$NAME
PIDDIR=/var/run/owfs
PIDFILE=$PIDDIR/$NAME.pid
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers