packaging(RPM): don't touch the run levels in ctdb install/udpate.
authorMichael Adam <obnox@samba.org>
Tue, 20 Oct 2009 15:02:16 +0000 (17:02 +0200)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 30 Oct 2009 10:42:34 +0000 (21:42 +1100)
We should really leave it up to the administrator to decide
whether ctdb should be started automatically at boot-time.

Michael

packaging/RPM/ctdb.spec

index 85c916f2819441ad07a960f029683b28280d1adb..a64b4b87d0fcaf471cb674ca3a35c5080250b17a 100644 (file)
@@ -13,7 +13,7 @@ URL: http://ctdb.samba.org/
 
 Source: ctdb-%{version}.tar.gz
 
-Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
+Prereq: /bin/mktemp /usr/bin/killall
 Prereq: fileutils sed /etc/init.d
 
 Provides: ctdb = %{version}
@@ -74,15 +74,6 @@ find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ -x /sbin/chkconfig ] && /sbin/chkconfig --add ctdb
-
-%preun
-if [ $1 = 0 ] ; then
-    [ -x /sbin/chkconfig ] && /sbin/chkconfig --del ctdb
-fi
-exit 0
-
 
 #######################################################################
 ## Files section                                                     ##