diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-08-18 07:35:35 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-08-18 07:35:35 +0000 |
| commit | fd62bfb32a7a5f89716e9be4fc0ce1691e11f8de (patch) | |
| tree | 15bd198e7843fc4c6e989ea2056ded44f8f728f0 | |
| parent | e02991b6de9907019522f59528fefadc608ebe66 (diff) | |
automatic import of elasticMemopeneuler24.03_LTS_SP4
| -rw-r--r-- | elasticMem.spec | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/elasticMem.spec b/elasticMem.spec index 517d9ea..d359081 100644 --- a/elasticMem.spec +++ b/elasticMem.spec @@ -31,11 +31,22 @@ install -D -m 0640 config/elasticMem.ini %{buildroot}%{_sysconfdir}/e install -D -m 0644 config/elasticMem.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/elasticMem mkdir -p %{buildroot}%{_localstatedir}/log/elasticMem -%preun -%systemd_preun elasticMem.service +#%preun +#%systemd_preun elasticMem.service + +#%post +#%systemd_post elasticMem.service %post -%systemd_post elasticMem.service +systemctl daemon-reload >/dev/null 2>&1 || : + +%preun +if [ $1 -eq 0 ]; then + systemctl stop elasticMem.service >/dev/null 2>&1 || : +fi + +%postun +systemctl daemon-reload >/dev/null 2>&1 || : %files %license LICENSE |
