From 4b6186c7d0e644a44433a8c36c45b33c9fe6656a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 24 May 2011 19:32:03 +0200 Subject: [PATCH] RPM: metaproxy pkg init.d defaults The metaproxy package provides /etc/sysconfig/metaproxy . --- metaproxy.spec | 2 ++ rpm/metaproxy.sysconfig | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 rpm/metaproxy.sysconfig diff --git a/metaproxy.spec b/metaproxy.spec index d6e5a84..7e676d4 100644 --- a/metaproxy.spec +++ b/metaproxy.spec @@ -62,8 +62,10 @@ mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-enabled mkdir -p ${RPM_BUILD_ROOT}/etc/metaproxy/filters-available mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d mkdir -p ${RPM_BUILD_ROOT}/etc/init.d +mkdir -p ${RPM_BUILD_ROOT}/etc/sysconfig install -m 644 rpm/metaproxy.xml ${RPM_BUILD_ROOT}/etc/metaproxy/metaproxy.xml install -m 755 rpm/metaproxy.init ${RPM_BUILD_ROOT}/etc/init.d/metaproxy +install -m 644 rpm/metaproxy.sysconfig ${RPM_BUILD_ROOT}/etc/sysconfig/metaproxy install -m 644 rpm/metaproxy.logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/metaproxy %clean diff --git a/rpm/metaproxy.sysconfig b/rpm/metaproxy.sysconfig new file mode 100644 index 0000000..3c7e8d6 --- /dev/null +++ b/rpm/metaproxy.sysconfig @@ -0,0 +1,4 @@ +# Defaults for metaproxy +OPTIONS="-u nobody -l /var/log/metaproxy.log -c /etc/metaproxy/metaproxy.xml" +# The following options should noe be set, because since init.d script +# already sets them: -p, -D, -t -- 1.7.10.4