]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- added %pst/%preun with restarting nscd on upgrade and stopping on remove
authorkloczek <kloczek@pld-linux.org>
Thu, 20 May 1999 00:56:50 +0000 (00:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
package.

Changed files:
    glibc.spec -> 1.30

glibc.spec

index ab96a092e12dc28c8ae59b2283610f663797a8a5..7e294a8c75db202527b794c230b3e7878aae1ed9 100644 (file)
@@ -227,6 +227,21 @@ if [ "$1" = 0 ]; then
        /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
 fi
 
+%post -n nscd
+/sbin/chkconfig --add nscd
+if test -r /var/run/nscd.pid; then
+       /etc/rc.d/init.d/nscd stop >&2
+       /etc/rc.d/init.d/nscd start >&2
+else
+       echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
+fi
+
+%preun -n nscd
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del nscd
+       /etc/rc.d/init.d/nscd stop >&2
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.294226 seconds and 4 git commands to generate.