| Summary: | sisyphus_check rejects FHS 2.3 compliant applications | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | viy <viy> |
| Component: | sisyphus_check | Assignee: | Dmitry V. Levin <ldv> |
| Status: | NEW --- | QA Contact: | qa-sisyphus |
| Severity: | major | ||
| Priority: | P2 | CC: | at, glebfm, imz, lav, ldv, legion, mike, placeholder |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
|
Description
viy
2008-03-08 22:48:28 MSK
Читаем /usr/share/doc/fhs-2.3/fhs.txt.bz2
/srv : Data for services provided by this system
Purpose
/srv contains site-specific data which is served by this system.
Rationale: This main purpose of specifying this is so that users may find
the location of the data files for particular service, and so that services
which require a single tree for readonly data, writable data and scripts
(such as cgi scripts) can be reasonably placed. Data that is only of
interest to a specific user should go in that users' home directory.
The methodology used to name subdirectories of /srv is unspecified as there
is currently no consensus on how this should be done. One method for
structuring data under /srv is by protocol, eg. ftp, rsync, www, and cvs.
On large systems it can be useful to structure /srv by administrative
context, such as /srv/physics/www, /srv/compsci/cvs, etc. This setup will
differ from host to host. Therefore, no program should rely on a specific
subdirectory structure of /srv existing or data necessarily being stored in
/srv. However /srv should always exist on FHS compliant systems and should
be used as the default location for such data.
Другими словами, в fhs-2.3 были добавлены некоторые каталоги с такой
регламентацией, что мне непонятно, как это отразить в sisyphus_check.
можно, например, добавить проверку что если используется /srv/%name/, то пропускать :) или же выдавать в случае /srv/ warning. пошла мода... /srv/%name/ # FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/ %define appdir /srv/jetty6/webapps %define ctxdir /srv/jetty6/contexts Сейчас /srv содержится в пакете filesystem -- этого достаточно? (В ответ на комментарий №4) > Сейчас /srv содержится в пакете filesystem -- этого достаточно? не достаточно. в ./sisyphus_check.d/130-check-fhs srv не прописан. 2 ldv: тривиально оформить префикс аналогично /var/{lib,www} -- приемлемо?
http://git.altlinux.org/people/mike/packages/?p=sisyphus_check.git;a=commitdiff;h=61aaf112aaeea1daaeac1688c0f52c9300cc0540
Я вот не уверен, что пакет должен что-то создавать в /srv. Если уж кому-то нужно, пусть бы делал это при инициализации/запуске. А так у нас традиционно /var/lib всегда был для такого. |