Missing /var/lib/zm and a few scripts

Support and queries relating to all previous versions of ZoneMinder
Locked
jnk1690
Posts: 30
Joined: Wed Jul 30, 2008 1:52 pm

Missing /var/lib/zm and a few scripts

Post by jnk1690 »

Hi All,

Probably a simple problem, but when ZM is installed from the live cd, I get the directory /var/lib/zm setup with the .pl files and also populated the zmdbbackup, zmdbrestore and the backup sql file that gets created automatically once a week.

When I installed from source, I end up with most of those files in the /usr/local/bin, but the scripts zmdbbackup and zmdbrestore never get copied in from the source dirs. Also, there is no /var/lib/zm directory.

Is there an easy way to fix this? I even tried using configure with ZM_PATH_SOCKS=/var/lib/zm and ZM_PATH_LOGS but that did not create those directories either. Not sure if I'm misunderstanding the ./configure and make options.

I'm trying to get the source version to look like the livecd directory structure.

Thanks in advance,

Joel
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Those scripts, and settings are added by the packagers and where not part of the original source. We tend to add extra goodies when we make packages some times.
jnk1690
Posts: 30
Joined: Wed Jul 30, 2008 1:52 pm

Post by jnk1690 »

Thanks, Cordel.

I did manage to work out the paths using --prefix=...

To duplicate the liveCD install, I see that the zmdbbackup is executed from the /etc/logrotate.d/zm file. What I can't figure out is why that file is not created/installed when I install from the complied version.

Do I have to set that up manually, or is there some ./configure option that I forgot?


Thanks again,

Joel
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

They have to be manually setup as they were not part of the original source. They are just there to keep things accessible.
Locked