<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31043</bug_id>
          
          <creation_ts>2015-06-01 19:14:22 +0300</creation_ts>
          <short_desc>Не работает</short_desc>
          <delta_ts>2015-06-10 18:55:08 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>logcheck</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chess">slchess</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>real.altlinux.org</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>151618</commentid>
    <comment_count>0</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-01 19:14:22 +0300</bug_when>
    <thetext>mkdir: cannot create directory ‘/run/lock/logcheck’: Permission denied                                                                                                                                                         
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
/usr/sbin/logcheck: line 312: mime-construct: command not found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151626</commentid>
    <comment_count>1</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-03 13:07:44 +0300</bug_when>
    <thetext>А должен?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151627</commentid>
    <comment_count>2</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-04 00:02:10 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; А должен?
А разве нет ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151630</commentid>
    <comment_count>3</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-04 04:54:34 +0300</bug_when>
    <thetext>Насколько я в курсе, под обычным пользователем - нет. Это админские заморочки.

PS. А вот с mime-construct на досуге разберусь.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151634</commentid>
    <comment_count>4</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-04 10:17:58 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; Насколько я в курсе, под обычным пользователем - нет. Это админские заморочки.
&gt; 
&gt; PS. А вот с mime-construct на досуге разберусь.

Я и не говорил что под обычным, это сообщение пришло по почте от задания cron

а если руками то:

[root@host ~]#  logcheck
logcheck should not be run as root. Use su to invoke logcheck:
su -s /bin/bash -c &quot;/usr/sbin/logcheck&quot; _logcheck
Or use sudo: sudo -u _logcheck logcheck.

su -s /bin/bash -c &quot;/usr/sbin/logcheck&quot; _logcheck
mkdir: cannot create directory ‘/run/lock/logcheck’: Permission denied
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
basename: unrecognized option &apos;--list&apos;
Try &apos;basename --help&apos; for more information.
/usr/sbin/logcheck: line 312: mime-construct: command not found

# id _logcheck 
uid=491(_logcheck) gid=487(_logcheck) groups=487(_logcheck),4(adm)

# getent passwd | grep _logcheck
_logcheck:x:491:487:Logcheck User:/var/lib/logcheck:/dev/null</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151640</commentid>
    <comment_count>5</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-04 16:08:19 +0300</bug_when>
    <thetext>https://lists.alioth.debian.org/pipermail/logcheck-users/2010-June/000290.html

проблема в run-parts --list
в Debian

debianutils: /bin/run-parts

# run-parts --help
Usage: run-parts [OPTION]... DIRECTORY
      --test          print script names which would run, but don&apos;t run them.
      --list          print names of all valid files (can not be used with
                      --test)
  -v, --verbose       print script names before running them.
      --report        print script names if they produce output.
      --reverse       reverse execution order of scripts.
      --exit-on-error exit as soon as a script returns with a non-zero exit
                      code.
      --lsbsysinit    validate filenames based on LSB sysinit specs.
      --new-session   run each script in a separate process session
      --regex=PATTERN validate filenames based on POSIX ERE pattern PATTERN.
  -u, --umask=UMASK   sets umask to UMASK (octal), default is 022.
  -a, --arg=ARGUMENT  pass ARGUMENT to scripts, use once for each argument.
  -V, --version       output version information and exit.
  -h, --help          display this help and exit.

В ALT

rpm -qf /bin/run-parts 
service-0.5.26-alt1

# run-parts 
Usage: run-parts &lt;dir&gt; [args]

head -n3  /bin/run-parts 
#!/bin/sh +e
#
# run-parts - concept taken from Debian

Видно не полный concept!

по ссылке есть обход через find ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151641</commentid>
    <comment_count>6</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-04 16:40:13 +0300</bug_when>
    <thetext>mime-construct есть в autoimports, но он собран с кривыми зависимостями, тянет много

apt-get install perl-mime-construct
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  perl-Digest-SHA perl-EV perl-MIME-Types perl-Mojolicious perl-Pod-Escapes perl-Pod-Simple perl-Pod-Usage perl-common-sense
The following NEW packages will be installed:
  perl-Digest-SHA perl-EV perl-MIME-Types perl-Mojolicious perl-Pod-Escapes perl-Pod-Simple perl-Pod-Usage perl-common-sense perl-mime-construct
0 upgraded, 9 newly installed, 0 removed and 114 not upgraded.
Need to get 829kB of archives.

если взять из rpm сам бинарь то нужно доставить только perl-Proc-WaitStat</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151655</commentid>
    <comment_count>7</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-05 19:41:38 +0300</bug_when>
    <thetext>&quot;если взять из rpm сам бинарь то нужно доставить только perl-Proc-WaitStat&quot;

Этого недостаточно: кроме бинарей, есть ещё и скрипты, так что зависимости прибивать не стОит.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151656</commentid>
    <comment_count>8</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-05 19:54:34 +0300</bug_when>
    <thetext>&quot;проблема в run-parts --list&quot;

он пробует run-parts --list &quot;$dir&quot;, тогда как надо run-parts &quot;$dir&quot; --list. Поправим.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151658</commentid>
    <comment_count>9</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-05 20:13:53 +0300</bug_when>
    <thetext>Отправил 1.3.17-alt1.git20141024, проверяйте.

Если надо быстро, то вот ссылки:

http://git.altlinux.org/tasks/archive/done/_141/145117/
http://git.altlinux.org/tasks/archive/done/_141/145118/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151660</commentid>
    <comment_count>10</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-05 20:25:16 +0300</bug_when>
    <thetext>Для проверки, без отправки на мыло, можно посмотреть:

sudo -u _logcheck logcheck -o</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151717</commentid>
    <comment_count>11</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-09 16:43:29 +0300</bug_when>
    <thetext>Поскольку тишина, будем считать, что проблема исчезла.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151732</commentid>
    <comment_count>12</comment_count>
    <who name="Chess">slchess</who>
    <bug_when>2015-06-10 16:38:35 +0300</bug_when>
    <thetext>(В ответ на комментарий №10)
&gt; Для проверки, без отправки на мыло, можно посмотреть:
&gt; 
&gt; sudo -u _logcheck logcheck -o

не нравится что по зависимостям вытягивается perl-Mojolicious</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151738</commentid>
    <comment_count>13</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2015-06-10 18:55:08 +0300</bug_when>
    <thetext>Тут лучше к нашим перлистам обращаться, а я с ним (перлом) на &quot;Вы&quot;, и поэтому резких движений стараюсь не делать.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>