[389-ds-base] fixes for systemd - remove .pid files after shutting down servers

Richard Allen Megginson rmeggins at fedoraproject.org
Mon Jan 23 23:04:47 UTC 2012


commit 78f687425caf42a6e50529b5885288e3adc231e8
Author: Rich Megginson <rmeggins at redhat.com>
Date:   Mon Jan 23 15:50:59 2012 -0700

    fixes for systemd - remove .pid files after shutting down servers
    
    fixes for systemd - remove .pid files after shutting down servers
    Ticket #263 - add systemd include directive
    Ticket #264 - upgrade needs better check for "server is running"
    (cherry picked from commit 7dfddf14e3e83bc1ad68c3fd1182344f60b4a132)

 389-ds-base.spec |   10 +++++++++-
 sources          |    2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/389-ds-base.spec b/389-ds-base.spec
index f13a348..c849ed9 100644
--- a/389-ds-base.spec
+++ b/389-ds-base.spec
@@ -19,7 +19,7 @@
 Summary:          389 Directory Server (base)
 Name:             389-ds-base
 Version:          1.2.10
-Release:          %{?relprefix}7%{?prerel}%{?dist}
+Release:          %{?relprefix}8%{?prerel}%{?dist}
 License:          GPLv2 with exceptions
 URL:              http://port389.org/
 Group:            System Environment/Daemons
@@ -228,6 +228,8 @@ fi
 # shutdown all instances
 echo shutting down all instances . . . > $output 2>&1 || :
 /bin/systemctl stop %{groupname} > $output 2>&1 || :
+echo remove pid files . . . > $output 2>&1 || :
+/bin/rm -f /var/run/%{pkgname}*.pid /var/run/%{pkgname}*.startpid
 # do the upgrade
 echo upgrading instances . . . > $output 2>&1 || :
 %{_sbindir}/setup-ds.pl -l $output -u -s General.UpdateMode=offline > $output 2>&1 || :
@@ -253,6 +255,7 @@ exit 0
 %config(noreplace)%{_sysconfdir}/%{pkgname}/config/ldap-agent.conf
 %config(noreplace)%{_sysconfdir}/%{pkgname}/config/template-initconfig
 %config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}
+%config(noreplace)%{_sysconfdir}/sysconfig/%{pkgname}.systemd
 %{_datadir}/%{pkgname}
 %{_unitdir}
 %{_bindir}/*
@@ -281,6 +284,11 @@ exit 0
 %{_libdir}/%{pkgname}/libslapd.so.*
 
 %changelog
+* Mon Jan 23 2012 Rich Megginson <rmeggins at redhat.com> - 1.2.10-0.8.a7
+- fixes for systemd - remove .pid files after shutting down servers
+- Ticket #263 - add systemd include directive
+- Ticket #264 - upgrade needs better check for "server is running"
+
 * Fri Jan 20 2012 Rich Megginson <rmeggins at redhat.com> - 1.2.10-0.7.a7
 - Ticket #262 - pid file not removed with systemd
 - Ticket #50 - server should not call a plugin after the plugin close function is called
diff --git a/sources b/sources
index 025aaaa..52ad550 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-162736c08297f42bfbf89424c168f342  389-ds-base-1.2.10.a7.tar.bz2
+06968adde45dcae518401709ef82510a  389-ds-base-1.2.10.a7.tar.bz2


More information about the scm-commits mailing list