Page 1 of 1
Symlinks and PurgeWhenFull
Posted: Tue Jul 01, 2008 10:53 pm
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
Posted: Sun Jul 06, 2008 4:29 am
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.
Posted: Sun Jul 06, 2008 5:06 am
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.
Posted: Sun Jul 06, 2008 6:47 pm
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.
Posted: Sun Jul 06, 2008 7:06 pm
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...
Posted: Tue Jul 08, 2008 9:29 pm
by yochaigal
Problem persists....