SPECS: nfs-utils.spec - added post/preun scripts for new services
baggins
baggins at pld-linux.org
Wed Mar 21 01:39:56 CET 2007
Author: baggins Date: Wed Mar 21 00:39:56 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added post/preun scripts for new services
---- Files affected:
SPECS:
nfs-utils.spec (1.129 -> 1.130)
---- Diffs:
================================================================
Index: SPECS/nfs-utils.spec
diff -u SPECS/nfs-utils.spec:1.129 SPECS/nfs-utils.spec:1.130
--- SPECS/nfs-utils.spec:1.129 Tue Mar 20 19:36:19 2007
+++ SPECS/nfs-utils.spec Wed Mar 21 01:39:50 2007
@@ -281,21 +281,37 @@
%post
/sbin/chkconfig --add nfs
%service nfs restart "NFS daemon"
+%if %{with nfs4}
+/sbin/chkconfig --add svcgssd
+%service svcgssd restart "RPC svcgssd daemon"
+%endif
%preun
if [ "$1" = "0" ]; then
%service nfs stop
/sbin/chkconfig --del nfs
+%if %{with nfs4}
+ %service svcgssd stop
+ /sbin/chkconfig --del svcgssd
+%endif
fi
%post clients
/sbin/chkconfig --add nfsfs
%service nfsfs restart
+%if %{with nfs4}
+/sbin/chkconfig --add gssd
+%service svcgssd restart "RPC gssd daemon"
+%endif
%preun clients
if [ "$1" = "0" ]; then
%service nfsfs stop
/sbin/chkconfig --del nfsfs
+%if %{with nfs4}
+ %service gssd stop
+ /sbin/chkconfig --del gssd
+%endif
fi
%pre lock
@@ -318,6 +334,18 @@
%groupremove rpcstatd
fi
+%if %{with nfs4}
+%post common
+/sbin/chkconfig --add idmapd
+%service svcgssd restart "RPC idmapd daemon"
+
+%preun common
+if [ "$1" = "0" ]; then
+ %service idmapd stop
+ /sbin/chkconfig --del idmapd
+fi
+%endif
+
%post rquotad
/sbin/chkconfig --add rquotad
%service rquotad restart "NFS quota daemon"
@@ -434,6 +462,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.130 2007/03/21 00:39:50 baggins
+- added post/preun scripts for new services
+
Revision 1.129 2007/03/20 18:36:19 baggins
- build mount.nfs (with bcond)
- add special user for rpc.statd
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nfs-utils.spec?r1=1.129&r2=1.130&f=u
More information about the pld-cvs-commit
mailing list