SOURCES: logrotate.conf - /var/log/archiv -> /var/log/archive

Elan Ruusamäe glen at delfi.ee
Fri Dec 30 10:55:23 CET 2005


On Friday 30 December 2005 11:45, Paweł Gołaszewski wrote:
> On Fri, 30 Dec 2005, Elan Ruusamäe wrote:
> > > Mountmoint?
> >
> > attached diff and spec should handle common cases of /var/log/archiv and
> > making use any of them (new and old) identical.
>
> What is the point to make "mount --move" without updating fstab? Remember
> that after reboot you won't have that mount...

mount works over symlinks too:
# mount --bind /home/__archive archiv
# l archiv* -d
lrwxrwxrwx   1 root root    7 Dec 29 02:13 archiv -> archive/
drwxr-x---  12 root logs 1.8K Dec 29 01:55 archive/
# mount|grep archiv
/home/__archive on /var/log/archive type none (rw,bind)



>
> Besides - I don't know if it's good idea to make some mount-plays in
> triggers/pre/post... It's quite dangerous I think...
>
> Let's move this rename to Th.

-- 
glen


More information about the pld-devel-en mailing list