From ee8f79a4070f454eda47b190a4310e295109fa8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 1 Dec 1999 14:53:45 +0000 Subject: [PATCH] - added post/preun scripts to rquotad package Changed files: nfs-utils.spec -> 1.7 --- nfs-utils.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/nfs-utils.spec b/nfs-utils.spec index 2a7303f..0ac78f6 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -159,7 +159,7 @@ fi if [ -r /var/lock/subsys/nfslock ]; then /etc/rc.d/init.d/nfslock restart >&2 else - echo "Run \"/etc/rc.d/init.d/nfs start\" to start nfslock daemon." + echo "Run \"/etc/rc.d/init.d/nfslock start\" to start nfslock daemon." fi %preun lock @@ -168,6 +168,20 @@ if [ "$1" = "0" ]; then /etc/rc.d/init.d/nfslock stop >&2 fi +%post rquotad +/sbin/chkconfig --add rquotad +if [ -r /var/lock/subsys/rquotad ]; then + /etc/rc.d/init.d/rquotad restart >&2 +else + echo "Run \"/etc/rc.d/init.d/rquotad start\" to start quota daemon." +fi + +%preun rquotad +if [ "$1" = "0" ]; then + /sbin/chkconfig --del rquotad + /etc/rc.d/init.d/rquotad stop >&2 +fi + %files %defattr(644,root,root,755) %doc {ChangeLog,README,*.ps}.gz html -- 2.44.0