Betr.: Idea - everyone duck

Jerry Benton jerry.benton at mailborder.com
Wed Jan 27 10:05:55 UTC 2016


So I changed it again …

- removed the ramdisk specific service
- added option to /etc/default/MailScanner to use ramdisk sync

If Enabled:
- it checks to see if the “Incoming Work Dir” is a ramdisk. if is is not, none of this happens
- after MS stops, it will sync “Incoming Work Dir”, which should be your ramdisk, to /var/spool/MailScanner/ramdisk_save
- before MS starts, it will sync /var/spool/MailScanner/ramdisk_save to your “Incoming Work Dir”, which should still be your ramdisk
- before MS starts, it sets the user and group ownership of “Incoming Work Dir” (the whole ramdisk) using “Incoming Work User” and “Incoming Work Group” along with “Incoming Work Permissions”
- it sets directory permissions to 0750
- MS starts

The installer:
- the installer lets you pick the ramdisk size. example: 1024
- auto enables in /etc/default/MailScanner if you setup your ramdisk with the installer


This only works for clean shutdowns and start ups. (Reboot is considered clean.) If your server gets reset or loses power … well … no.

This also eliminates the need to set gid’s and other crap in your /etc/fstab. In short, I make your life easy. 

-
Jerry Benton
www.mailborder.com



> On Jan 27, 2016, at 3:14 AM, Jerry Benton <jerry.benton at mailborder.com> wrote:
> 
> I have already done this:
> 
> - added the option to the installer
> - created a daemon (not really, but it is set as a service) that saves the Incoming Work Directory on reboot and then restores it when the server comes back up
> - sets the correct ownership (user:group) and file permissions of the ramdisk based on MailScanner.conf settings when the server boots up
> - the daemon checks to make sure it is a ramdisk before doing any of this
> 
> 
> 
> -
> Jerry Benton
> www.mailborder.com
> 
> 
> 
>> On Jan 27, 2016, at 2:57 AM, Arjan Melein <Amelein at dantumadiel.eu> wrote:
>> 
>> Good idea, ramdrive reduces the IO load a lot and increases the processing speed substantially IMO.
>> Make it an option though like someone else already said.
>> 
>> 
>>>>> Jerry Benton <jerry.benton at mailborder.com> 26-1-2016 21:07 >>>
>> I was considering the install script giving the option of creating a ramdisk for /var/spool/MailScanner/incoming as one of the install questions. 
>> 
>> Again, an option.
>> 
>> 
>> Good idea? Bad?
>> 
>> -
>> Jerry Benton
>> www.mailborder.com 
>> 
>> 
>> 
>> 
>> 
>> -- 
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info 
>> http://lists.mailscanner.info/listinfo/mailscanner 
>> 
>> 
>> 
>> 
>> -- 
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/listinfo/mailscanner
>> 
> 



More information about the MailScanner mailing list