<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 3/5/2013 11:30 AM, Chuck Tetlow
      wrote:<br>
    </div>
    <blockquote cite="mid:20130305192736.M17705@tetlow.net" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta content="OPENWEBMAIL" name="GENERATOR">
      <font size="2">> I also have had 2 or 3 cases now of the
        maillog sitting at 0 size and <br>
        > nothing logged there, even though mail is otherwise running
        fine. <br>
        > Nothing found in the messages log indicating a problem
        either. <br>
        > Restarting sendmail doesn't resolve this. Anyone have a
        suggestion for <br>
        > something else to try short of rebooting that VPS (which is
        what I've <br>
        > resorted to)? <br>
        > <br>
        > -- <br>
        > Jim Matysek <br>
        <br>
        <br>
        <font size="2"><font size="2">Jim,
            <br>
            <br>
            <font size="2">If that happens again, try "service <font
                size="2">rsyslog restart", and then "service <font
                  size="2">sendmail restart".
                  <br>
                  <br>
                  <font size="2">The <font size="2">first restart<font
                        size="2">s the logging services, which can
                        sometimes hang in the process of<font size="2">
                          starting a new set of logs.  But if <font
                            size="2">that keeps happening - you've got a
                            deeper problem that should be
                            investigated/addresse<font size="2">d.
                              <br>
                              <br>
                              <br>
                              <br>
                              <font size="2">Chuck
                                <br>
                                <br>
                              </font></font></font></font></font></font></font></font></font></font></font></font>
      </font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Blueonyx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a>
<a class="moz-txt-link-freetext" href="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a>
</pre>
    </blockquote>
    <br>
    For servers that have problems with the syslog, I just set a cron to
    check it every 10 minutes. The script I use is<br>
    <br>
    <br>
    #!/usr/bin/perl<br>
    ##################################################################<br>
    # This script will check to see if the syslog is running and if<br>
    # it is not then it will restart it.<br>
    #################################################################<br>
     $mailprog = '/usr/sbin/sendmail';<br>
     $sendto = <a class="moz-txt-link-rfc2396E" href="mailto:someone\@somedomain.net">"someone\@somedomain.net"</a>;<br>
    <br>
    $pscount =`ps auxwwwww | grep -v grep | grep syslog -c`;<br>
    $ps =`ps fauxw `;<br>
    #print "ps is:   $ps\n";<br>
    <br>
    if( $pscount > 0) {<br>
     # print "syslog is running.  It is ok.\n";<br>
    } else {<br>
     system ('/etc/rc.d/init.d/syslog restart');<br>
     print "I restarted syslog\n";<br>
    <br>
    <br>
    <br>
             open (MAIL, "|$mailprog -t") || &safe_die("Can't open
    $mailprog!\n");<br>
             print MAIL "From: $sendto\n";<br>
             print MAIL "Reply-To: $sendto\n";<br>
             print MAIL "To: $sendto\n";<br>
             print MAIL "Subject: $serverdomain  syslog restart\n\n";<br>
             print MAIL "The ps  is:   $ps \n";<br>
             close (MAIL);<br>
    <br>
    }<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    Ken Marcus<br>
  </body>
</html>