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

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

    <bug>
          <bug_id>51462</bug_id>
          
          <creation_ts>2024-09-12 10:48:19 +0300</creation_ts>
          <short_desc>Файл статуса создает в /var/lib вместо /var/lib/logrotate</short_desc>
          <delta_ts>2025-01-31 15:00:26 +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>logrotate</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Дмитрий Кольвах">k_e_u</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>k_e_u</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>shaba</cc>
    
    <cc>urozhaevaoo</cc>
    
    <cc>vercha</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>251559</commentid>
    <comment_count>0</comment_count>
    <who name="Дмитрий Кольвах">k_e_u</who>
    <bug_when>2024-09-12 10:48:19 +0300</bug_when>
    <thetext>Создает и использует файл статуса  /var/lib/status вместо /var/lib/logrotate/status. /var/lib/logrotate/status имеется в системе, но не используется. В man указан /var/lib/status, по всей вероятности продукт автогенерации.

Ожидаемое поведение: Использует /var/lib/logrotate/status

В p11 аналогичная ошибка.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>251589</commentid>
    <comment_count>1</comment_count>
    <who name="Olga">urozhaevaoo</who>
    <bug_when>2024-09-13 18:42:54 +0300</bug_when>
    <thetext>Версия программы:
=================
logrotate-3.20.1-alt2.x86_64

Стенды с ошибкой, обновлен. до Sisyphus:
========================================
Alt Workstation K 10.3
Alt Workstation 10.2 
Alt Server 10.2

Шаги, приводящие к ошибке:
==========================
1.Создать конфигурационный файл и проверить его на корректность:

# touch /var/log/test &amp;&amp; cat &gt; /etc/logrotate.d/test &lt;&lt;EOF
/var/log/test {
rotate 3
size 1K
compress
delaycompress
create 0644 root test
postrotate
touch /var/logrotate-done-\$(date +%s)
endscript
}
EOF
# logrotate -d /etc/logrotate.d/test

Реальный результат:
===================
reading config file /etc/logrotate.d/test
Reading state from file: /var/lib/status
state file /var/lib/status does not exist

Ожидаемый результат:
====================
Используется файл /var/lib/logrotate/status

Дополнительная информация:
==========================
Не воспроизводится на Alt Education 10.2 XFCE/KDE:
reading config file /etc/logrotate.d/test
Reading state from file: /var/lib/status
Allocating hash table for state file, size 64 entries
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258381</commentid>
    <comment_count>2</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2025-01-31 15:00:26 +0300</bug_when>
    <thetext>Ошибка актуальна для версии:
logrotate-3.20.1-alt2.x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>