]> git.pld-linux.org Git - packages/autofs.git/commitdiff
- in %post, %preun test if exist /var/lock/subsys/automount.
authorkloczek <kloczek@pld-linux.org>
Sat, 17 Jul 1999 18:53:23 +0000 (18:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autofs.spec -> 1.16

autofs.spec

index 6cd9b10985621b39b60139f323b68bc5111a1602..9013f63e47510b8ee0a1c095fa9039599bab68c3 100644 (file)
@@ -76,7 +76,7 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[58]/* \
 
 %post
 /sbin/chkconfig --add autofs
-if test -r /var/run/autofs.pid; then
+if test -r /var/lock/subsys/automount; then
        /etc/rc.d/init.d/autofs restart 1>&2
 else
        echo "Run \"/etc/rc.d/init.d/autofs start\" to start autofs daemon."
@@ -85,7 +85,7 @@ fi
 %preun
 if [ "$1" = "0" ]; then
        /sbin/chkconfig --del autofs
-       if [ -f /var/lock/subsys/autofs ]; then
+       if [ -f /var/lock/subsys/automount ]; then
                /etc/rc.d/init.d/autofs stop 1>&2
        fi
 fi
This page took 0.039464 seconds and 4 git commands to generate.