[packages/glibc] - drop upstart support - rel 3
baggins
baggins at pld-linux.org
Tue Aug 18 16:11:54 CEST 2015
commit 4e3bda50f8625bad5e073fde77ad98943c796563
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Aug 18 23:11:26 2015 +0900
- drop upstart support
- rel 3
glibc.spec | 7 ++-----
nscd.init | 11 +----------
nscd.upstart | 10 ----------
3 files changed, 3 insertions(+), 25 deletions(-)
---
diff --git a/glibc.spec b/glibc.spec
index 2d3ae66..552d02f 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -41,7 +41,7 @@ Summary(tr.UTF-8): GNU libc
Summary(uk.UTF-8): GNU libc версії
Name: glibc
Version: %{core_version}
-Release: 2
+Release: 3
Epoch: 6
License: LGPL v2.1+
Group: Libraries
@@ -55,7 +55,6 @@ Source5: %{name}-man-pages.tar.xz
# Source5-md5: 3a4eabb7d28db7d35d8204fdb471a863
Source6: %{name}-localedb-gen
Source7: %{name}-LD-path.c
-Source8: nscd.upstart
Source9: nscd.tmpfiles
# git diff glibc-2.22..release/2.22/master
Patch0: glibc-git.patch
@@ -1054,7 +1053,7 @@ diet ${CC#*ccache } %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,default,logrotate.d,init} \
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,default,logrotate.d} \
$RPM_BUILD_ROOT{%{_mandir},/var/log,/var/{lib,run}/nscd} \
$RPM_BUILD_ROOT{/var/cache/ldconfig,%{systemdtmpfilesdir}}
@@ -1109,7 +1108,6 @@ done
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
-cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/init/nscd.conf
cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
cp -a nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
@@ -1976,7 +1974,6 @@ fi
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
%attr(754,root,root) /etc/rc.d/init.d/nscd
-%config(noreplace) %verify(not md5 mtime size) /etc/init/nscd.conf
%attr(755,root,root) %{_sbindir}/nscd*
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
%attr(640,root,root) %ghost /var/log/nscd
diff --git a/nscd.init b/nscd.init
index 500ebfb..3429b36 100644
--- a/nscd.init
+++ b/nscd.init
@@ -53,15 +53,6 @@ condrestart() {
fi
}
-upstart_controlled --except reload
-
-# return true if service is considered "up"
-# with upstart, upstart is consulted
-# otherwise lockfile in subsys must exist
-is_service_up() {
- use_upstart && is_upstart_running "$1" || [ -f /var/lock/subsys/"$1" ]
-}
-
RETVAL=0
# See how we were called.
case "$1" in
@@ -82,7 +73,7 @@ case "$1" in
condrestart 7
;;
reload)
- if is_service_up nscd; then
+ if [ -f /var/lock/subsys/nscd ]; then
for db in passwd group hosts; do
show "Invalidating %s cache" $db; busy
nscd -i $db && ok || fail
diff --git a/nscd.upstart b/nscd.upstart
deleted file mode 100644
index 1b4c21c..0000000
--- a/nscd.upstart
+++ /dev/null
@@ -1,10 +0,0 @@
-description "Starts the Name Switch Cache Daemon"
-
-# as soon as /usr is mounted
-start on local-filesystems
-stop on pld.shutdown-started
-
-respawn
-
-expect daemon
-exec /usr/sbin/nscd
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/4e3bda50f8625bad5e073fde77ad98943c796563
More information about the pld-cvs-commit
mailing list