diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-06-11 19:48:57 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-06-11 19:48:57 +0200 |
commit | 17a6ce2ae11994e60f88e934edf2f62ce799089c (patch) | |
tree | 9e4ab92d23b5d0936dcd178fed2408f1468917d2 /centos | |
parent | fdf0cf9941ced79fb57bc1f7cb334cca7204b37d (diff) | |
download | rspamd-17a6ce2ae11994e60f88e934edf2f62ce799089c.tar.gz rspamd-17a6ce2ae11994e60f88e934edf2f62ce799089c.zip |
[Conf] Do away with systemd specifics completely
Diffstat (limited to 'centos')
-rw-r--r-- | centos/rspamd.spec | 10 | ||||
-rw-r--r-- | centos/sources/rspamd.init | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/centos/rspamd.spec b/centos/rspamd.spec index 7cadb4f42..0e7819c0b 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -48,14 +48,14 @@ BuildRequires: luajit-devel %else BuildRequires: lua-devel %endif -%if 0%{?el6} Requires: logrotate +%if 0%{?el6} Requires(post): chkconfig Requires(preun): chkconfig, initscripts Requires(postun): initscripts Source1: %{name}.init -Source2: %{name}.logrotate %endif +Source2: %{name}.logrotate Source0: https://rspamd.com/downloads/%{name}-%{version}.tar.xz Source3: 80-rspamd.preset @@ -110,9 +110,9 @@ lua. %if 0%{?el6} %{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} %{__install} -d -p -m 0755 %{buildroot}%{_localstatedir}/run/rspamd +%endif %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -d -p -m 0755 %{buildroot}%{rspamd_logdir} -%endif %{__install} -d -p -m 0755 %{buildroot}%{rspamd_home} %{__install} -p -D -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/local.d/ @@ -181,9 +181,9 @@ fi %if 0%{?el6} %{_initrddir}/%{name} %dir %{_localstatedir}/run/rspamd +%endif %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %dir %{rspamd_logdir} -%endif %{_mandir}/man8/%{name}.* %{_mandir}/man1/rspamc.* %{_mandir}/man1/rspamadm.* @@ -192,7 +192,6 @@ fi %{_bindir}/rspamc %{_bindir}/rspamadm %config(noreplace) %{rspamd_confdir}/%{name}.conf -%config(noreplace) %{rspamd_confdir}/%{name}.sysvinit.conf %config(noreplace) %{rspamd_confdir}/composites.conf %config(noreplace) %{rspamd_confdir}/metrics.conf %config(noreplace) %{rspamd_confdir}/mime_types.inc @@ -206,7 +205,6 @@ fi %config(noreplace) %{rspamd_confdir}/worker-fuzzy.inc %config(noreplace) %{rspamd_confdir}/worker-normal.inc %config(noreplace) %{rspamd_confdir}/modules.d/* -%config(noreplace) %{rspamd_confdir}/rspamd.systemd.conf %attr(-, _rspamd, _rspamd) %dir %{rspamd_home} %dir %{rspamd_rulesdir}/regexp %dir %{rspamd_rulesdir} diff --git a/centos/sources/rspamd.init b/centos/sources/rspamd.init index ee3365b31..67bfa15ff 100644 --- a/centos/sources/rspamd.init +++ b/centos/sources/rspamd.init @@ -14,7 +14,7 @@ # chkconfig: - 85 15 # description: rspamd is a spam filtering system # processname: rspamd -# config: /etc/rspamd/rspamd.sysvinit.conf +# config: /etc/rspamd/rspamd.conf # config: /etc/sysconfig/rspamd # pidfile: /var/run/rspamd/rspamd.pid @@ -31,7 +31,7 @@ rspamd="/usr/bin/rspamd" rspamadm="/usr/bin/rspamadm" prog=$(basename $rspamd) -RSPAMD_CONF_FILE="/etc/rspamd/rspamd.sysvinit.conf" +RSPAMD_CONF_FILE="/etc/rspamd/rspamd.conf" RSPAMD_USER="_rspamd" RSPAMD_GROUP="_rspamd" |