Bug 28407 - [FR][PATCH] Добавить поддержку /etc/sysconfig/monit
Summary: [FR][PATCH] Добавить поддержку /etc/sysconfig/monit
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: monit (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Michael Shigorin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-20 03:32 MSK by Igor Zubkov
Modified: 2014-03-18 14:46 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 Igor Zubkov 2013-01-20 03:32:37 MSK
Дело в том что для monit демона можно передавать дополнительные параметры через /etc/sysconfig/monit, но так как такого файла нет -- никто и не знает что так можно делать.

Просьба добавить в %build:

mkdir -p %buildroot%_sysconfdir/sysconfig/
install -pDm644 %SOURCE1 %buildroot%_sysconfdir/sysconfig/

Ну и сам %SOURCE1:
$ cat monit 
# monit options, see man(1) monit for more
#MONIT_OPTIONS=-vv
$ 

Плюс, выкинуть старый %SOURCE1 который monit.init.2_2 и остался тут от Мастер 2.2. Пора его на пенсию.
Comment 1 Igor Zubkov 2013-01-20 03:34:28 MSK
Ну и в %files:
%config(noreplace) %_sysconfdir/sysconfig/monit
Comment 2 Michael Shigorin 2014-03-17 19:37:48 MSK
Добавил в 5.7-alt2.
Comment 3 Repository Robot 2014-03-17 19:59:15 MSK
monit-5.7-alt2 -> sisyphus:

* Mon Mar 17 2014 Michael Shigorin <mike@altlinux> 5.7-alt2
- fixes/enhancements by icesik@:
  + converted spec to utf8 (closes: #28406)
  + added sample sysconfig file (closes: #28407)
  + dropped ancient style initscript (for ALM2.2 and before)
  + do not build with explicit optimization to fix debuginfo subpackage
    (closes: #28408)