Symlinks and PurgeWhenFull

Support and queries relating to all previous versions of ZoneMinder
Locked
yochaigal
Posts: 41
Joined: Wed Jun 25, 2008 1:55 am
Location: San Francisco

Symlinks and PurgeWhenFull

Post by yochaigal »

Hello.

Does anyone have any working examples of using symlinks with zoneminder?
I have the events and images directories pointing to symbolic links, ie:

/events/cam is really /media/cam
and
/images/cam is really /media/cam

I can create events with NO problem. But for some reason, filters do not work. Can anyone help me on this? Is it the symlinks?

Thanks
socsuser
Posts: 43
Joined: Tue Mar 20, 2007 1:36 pm

Post by socsuser »

I'd also like to know any answers you find with this. I really would like to place a symlink to redirect output (ie, /var/cache/zoneminder -> /mnt/video/zoneminder) and I'd like to know how to fine tune purging once that volume is close to being full.

The instructions for purging are at: http://www.zoneminder.com/index.php?id= ... faq_faq=12

HOWEVER, these do not appear to be accurate when working with the system as it is at the moment. Could this FAQ please be updated appropriately?

Thanks much.
socsuser
Posts: 43
Joined: Tue Mar 20, 2007 1:36 pm

Post by socsuser »

Found my symlink problem. You must be sure to chown the folders appropriately. For example, I had to do a `chown -R www-data:www-data /mnt/video/zoneminder` in order to get things to start working right again after mv'ing the /var/cache/zoneminder over.

Still need some help on this purging issue in terms of clarity.
yochaigal
Posts: 41
Joined: Wed Jun 25, 2008 1:55 am
Location: San Francisco

Post by yochaigal »

why did he use the user www-data?
i thought zm runs as root. what use should i chown with?
zoneminder saves its video files to
/var/cache/zoneminder/
there are two folders, images and events

i created symlinks from both to /media/cam/

So what should the command be?
chown -R root:root /media/cam ?

thanks.
yochaigal
Posts: 41
Joined: Wed Jun 25, 2008 1:55 am
Location: San Francisco

Post by yochaigal »

Oh I see.

I did ps -ef and saw that www-data is the process owner;
so it should be what was posted above.

okay thanks...
yochaigal
Posts: 41
Joined: Wed Jun 25, 2008 1:55 am
Location: San Francisco

Post by yochaigal »

Problem persists....
Locked