Save 37 MB RAM [solved]

Post there if you plan to contribute to this SystemCd
Post Reply
gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Save 37 MB RAM [solved]

Post by gernot » 29 Aug 2011, 11:01

/etc/init.d/sysresccd change the owner and group of the clamav database. This is not needed because the files are owned by clamav in the squashfs.

This command copies the squashfs files to RAM by changing user:group
/etc/init.d/sysresccd: # ---- allow freshclam ----
/etc/init.d/sysresccd: chown clamav:clamav /var/lib/clamav/*

#>d -k /livemnt/memory/var/
37092 /livemnt/memory/var/lib/clamav

I dont know about the group "locate" in the squashfs but freshclam works after removing the /livemnt/memory copy of the database.

Gernot

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Save 37 MB RAM

Post by admin » 03 Sep 2011, 19:03

Thanks it has been done in sysresccd-2.4.0-beta001

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: Save 37 MB RAM

Post by gernot » 04 Sep 2011, 15:49

It work.
Thank you.

Gernot

Post Reply