git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f66a474
)
packaging(RHEL-CTDB): move service smb restart from %postun to %post
author
Michael Adam
<obnox@samba.org>
Fri, 23 May 2008 10:47:42 +0000
(12:47 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 13 Aug 2008 09:54:02 +0000
(11:54 +0200)
What would be the use of restarting a service that has just
been uninstalled...
Michael
(This used to be commit
98116075589abb7e0c9dc391f6d1bf3452025a1d
)
packaging/RHEL-CTDB/samba.spec
patch
|
blob
|
history
diff --git
a/packaging/RHEL-CTDB/samba.spec
b/packaging/RHEL-CTDB/samba.spec
index 3dbeb8b01ce7d2ee5e333d2d08f24a43acb254f8..705810af4b5258bed9fef23344bebf2bc521dda4 100644
(file)
--- a/
packaging/RHEL-CTDB/samba.spec
+++ b/
packaging/RHEL-CTDB/samba.spec
@@
-337,6
+337,10
@@
if [ "$1" -eq "2" ]; then
fi
fi
+if [ "$1" -ge "1" ]; then
+ %{initdir}/smb restart >/dev/null 2>&1
+fi
+
%preun
if [ $1 = 0 ] ; then
/sbin/chkconfig --del smb
@@
-345,11
+349,7
@@
if [ $1 = 0 ] ; then
fi
exit 0
-%postun
-if [ "$1" -ge "1" ]; then
- %{initdir}/smb restart >/dev/null 2>&1
-fi
-
+#%postun
%post swat
# Add swat entry to /etc/services if not already there.