diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-08-18 07:47:36 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-08-18 07:47:36 +0000 |
| commit | b516edc989180a13a5e8faf2d580ab0cc203edf5 (patch) | |
| tree | 13822238d1c7c6f944c308f33f01c7ed35ca9f49 | |
| parent | 5422d06d9d20f5907d4dfcf7339915ae3cdefdc1 (diff) | |
automatic import of elasticMemopeneuler22.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 |
