summaryrefslogtreecommitdiff
path: root/packaging/RHEL-CTDB
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-23 12:47:42 +0200
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:02 +0200
commitd12eb6e5f3ddda7c2dfa0115ebed0a70ae2beb4a (patch)
tree10d2c3a7b4e0aff760ca236a6953edc680bf4d00 /packaging/RHEL-CTDB
parentf66a4745441e9a8ab9e35e572d7fcfaafd0e98f1 (diff)
downloadsamba-d12eb6e5f3ddda7c2dfa0115ebed0a70ae2beb4a.tar.gz
samba-d12eb6e5f3ddda7c2dfa0115ebed0a70ae2beb4a.tar.bz2
samba-d12eb6e5f3ddda7c2dfa0115ebed0a70ae2beb4a.zip
packaging(RHEL-CTDB): move service smb restart from %postun to %post
What would be the use of restarting a service that has just been uninstalled... Michael (This used to be commit 98116075589abb7e0c9dc391f6d1bf3452025a1d)
Diffstat (limited to 'packaging/RHEL-CTDB')
-rw-r--r--packaging/RHEL-CTDB/samba.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec
index 3dbeb8b01c..705810af4b 100644
--- 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.