From: kloczek Date: Sat, 17 Jul 1999 18:53:23 +0000 (+0000) Subject: - in %post, %preun test if exist /var/lock/subsys/automount. X-Git-Tag: autofs-3_1_3-5~3 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fautofs.git;a=commitdiff_plain;h=f12849ca96cc0b1e54ab96eb7cbf6d36d3de56d8 - in %post, %preun test if exist /var/lock/subsys/automount. Changed files: autofs.spec -> 1.16 --- diff --git a/autofs.spec b/autofs.spec index 6cd9b10..9013f63 100644 --- a/autofs.spec +++ b/autofs.spec @@ -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