Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/sendmail/examples/amavis/ drwxr-xr-x |
Viewing file: amavis-doc-8.html (1.93 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | 8. An Example Startup script
#!/bin/sh # /etc/init.d/amavis-ramdisk # Script to run Amavis from a ram disk. # I keep my antiviral scanner and data files on a ramdisk for speed. AVDIR="/usr/local/share/av.original" RAMDISK="/usr/local/share/av.ramdisk" AMAVISBIN="/usr/local/sbin" AMAVISSOCK="/var/local/amavis" [ -d $AVDIR -a -d $RAMDISK ] || exit 0 case "$1" in start) mke2fs /dev/ram0 > /dev/null 2>&1 mount /dev/ram0 $RAMDISK cp $AVDIR/* $RAMDISK if [ -S $AMAVISSOCK/amavis-milter.sock ]; then rm -rf $AMAVISSOCK/amavis-milter.sock fi if [ -S $AMAVISSOCK/amavisd.sock ]; then rm -rf $AMAVISSOCK/amavisd.sock fi nohup $AMAVISBIN/amavis-milter -p $AMAVISSOCK/amavis-milter.sock & $AMAVISBIN/amavisd ;; stop) kill -9 `ps x | grep amavisd | grep -v grep | awk '{print $1}'`2> /dev/null kill -9 `ps x | grep amavis-milter | grep -v grep | awk '{print $1}'` 2> /dev/null # I need to sleep for some reason :( sleep 2umount /dev/ram0 ;; *) echo "Usage: /etc/init.d/amavis-ramdisk {start|stop}" exit 1 ;; esac exit 0 Don't forget to update your antivirus data files regularly.
Send all comments and corrections to <jps@maxlingua.com>. Support free software! Next Previous Contents |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0056 ]-- |