From: Adam Dickmeiss Date: Tue, 24 May 2011 17:32:03 +0000 (+0200) Subject: RPM: metaproxy pkg init.d defaults X-Git-Tag: v1.2.6~36 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=4b6186c7d0e644a44433a8c36c45b33c9fe6656a;p=metaproxy-moved-to-github.git RPM: metaproxy pkg init.d defaults The metaproxy package provides /etc/sysconfig/metaproxy . --- 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