Bug 51622 - Вы неправильно создаёте каталог в /run
Summary: Вы неправильно создаёте каталог в /run
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: byedpi (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrew Savchenko
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-02 17:01 MSK by ruslandh
Modified: 2024-10-27 15:48 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ruslandh 2024-10-02 17:01:10 MSK
Вы включили в rpm каталог в /run

Но это динамический каталог, это так не работает. 
Для того, чтобы systemd создал каталог в /run, надо создать файл в /usr/lib/tmpfiles.d

Пример создания такого файла можно посмотреть, например, в спеке альтератора:
https://packages.altlinux.org/ru/sisyphus/srpms/alterator/specfiles/


cat >%buildroot%_tmpfilesdir/%name.conf<<EOF
d /run/alteratord 0710 root _alteratord -
EOF
Comment 1 Andrew Savchenko 2024-10-02 19:05:46 MSK
Да, перепутал. Исправлю на следующей неделе, заодно добавлю поддержку systemd. Сейчас некогда.
Comment 2 Repository Robot 2024-10-27 15:48:49 MSK
byedpi-0.14.1.0.8.g322f-alt2 -> sisyphus:

 Sun Oct 27 2024 Andrew Savchenko <bircoph@altlinux> 0.14.1.0.8.g322f-alt2
 - Use tmpfilesd (Closes: #51622)
 - Add LSB header to the init script