Mounting a webdav directory

Richard Barry rbarry at sunspace.co.za
Fri Feb 17 13:13:28 UTC 2006


ok, the problem is that it wants a subdir called mount.davfs in
the /var/run directory.  This gets created by the installer when I
install the davfs2 package, but when I shutdown (reboot) it disappears.
How is the contents of the /var/run dir managed?  Is it cleared on a
shutdown and regenerated as the applications start up?  I could solve my
problem by running the following as root at startup:

$ mkdir /var/run/mount.davfs
$ chown root.users /var/run/mount.davfs
$ chmod 1744 /var/run/mount.davfs

What would be the best way to do that?  As a script in /etc/rcS.d/
maybe?


On Thu, 2006-02-16 at 14:49 +0200, Richard Barry wrote:
> I can't find anything obvious in /var/run (see below in my original email).
> Any suggestions as to which one of those it might be? Anybody else have any
> experience with davfs2? 
> 
> -----Original Message-----
> From: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Phillip Susi
> Sent: 15 February 2006 18:11
> To: Ubuntu Help and User Discussions
> Subject: Re: Mounting a webdav directory
> 
> Look in /var/run for pid files.
> 
> 
> Richard Barry wrote:
> > Hi,
> > I'm using davfs2 to mount a webdav directory locally.  I get it 
> > working after I install davfs2, but then after I restart I cannot 
> > mount the directory again.  I get the following error message:
> > 
> > /usr/lib/mount.davfs-2.6: Could not open pid-file
> > 
> > I tried looking in the /var/lock and /var/run directories for 
> > something I can delete to make it work again, but I can't find anything
> obvious:
> > 
> > $ls /var/lock
> > evms-engine  lvm
> > 
> > $ ls /var/run
> > acpid.socket  dbus               klogd                samba
> > atd.pid       dhclient.eth0.pid  laptop-mode-enabled  screen
> > crond.pid     gdm.pid            laptop-mode-state    sdp
> > crond.reboot  hal                mdadm.pid            syslogd.pid
> > cups          hplip              network              utmp
> > 
> > Reintalling davfs2 fixes it, but there has to be some way I can get it 
> > to just work.
> > 
> > Thanks
> > 
> > PS I'm running Dapper
> > 
> > This e-mail and any accompanying attachments are confidential and for use
> of the intended recipient only. If the message is received by anyone other
> than the addressee, please return the message to the sender by replying to it
> and then delete the message from your computer. Sun Space and Information
> Systems (Pty) Ltd (SunSpace) does not accept responsibility for changes made
> to this message after it was sent.
> > 
> > Whilst all reasonable care has been taken to avoid the transmission of any
> viruses, it is the responsibility of the recipient to ensure that the onward
> transmission, opening or use of this message and any attachments will not
> adversely affect its systems or data. No responsibility is accepted by
> SunSpace in this regard and the recipient should carry out such viruses and
> other checks it considers appropriate. 
> > 
> > If verification of this e-mail or any attachment is required, please
> request a hard-copy version.
> > 
> > 
> 
> 
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 




More information about the ubuntu-users mailing list