]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- drop upstart support auto/th/glibc-2.22-3
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Aug 2015 14:11:26 +0000 (23:11 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Aug 2015 14:11:26 +0000 (23:11 +0900)
- rel 3

glibc.spec
nscd.init
nscd.upstart [deleted file]

index 2d3ae66cd9f7bb996aab4b0aafa5214303ffdc19..552d02fe87381de83fbbbd47d828933f95bf9349 100644 (file)
@@ -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
index 500ebfb90930947037395fc93d9004cad281a6fc..3429b365dd077ee9f90495884c6161f3051e9bbb 100644 (file)
--- 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 (file)
index 1b4c21c..0000000
+++ /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
This page took 0.063953 seconds and 4 git commands to generate.