Mathieu Parent [Tue, 7 Apr 2009 23:14:20 +0000 (09:14 +1000)]
Ronnie Sahlberg [Tue, 7 Apr 2009 22:48:55 +0000 (08:48 +1000)]
install /etc/ctdb/notify.sh as executable.
this addresses bug 6250
(This used to be ctdb commit
b8be5b06c3359d037db336dc12d38e0018349951)
Ronnie Sahlberg [Mon, 6 Apr 2009 04:03:09 +0000 (14:03 +1000)]
we only need to switch into client mode from the eventscript child if we are running the monitor event
(This used to be ctdb commit
13e2c9044950f21918e4610726e73ed3d8f76920)
Ronnie Sahlberg [Mon, 6 Apr 2009 04:00:41 +0000 (14:00 +1000)]
increase the listen queue. Now that the eventscripts may become clients and connect back to the server we do get a lot more concurrent connection attempts (takepip/teleaseip are performed in parallell)
(This used to be ctdb commit
018f8b0b1823ef59b46f1a671aec5309d10628f4)
Ronnie Sahlberg [Mon, 6 Apr 2009 03:16:36 +0000 (13:16 +1000)]
use _exit() and not exit() when we terminate a failed eventscript child process
(This used to be ctdb commit
33b296cee177adc61edc911caec8c24b3efa8441)
Ronnie Sahlberg [Mon, 6 Apr 2009 02:00:22 +0000 (12:00 +1000)]
We dont need to verify the nodemap on remote nodes that are banned
(This used to be ctdb commit
7f8f9385deee6eff2b7303147bc6412bbdc122df)
Ronnie Sahlberg [Thu, 2 Apr 2009 03:50:43 +0000 (14:50 +1100)]
if we cant pull the remote nodemap off a node we should mark it as a culprit so it eventually becomes banned.
(This used to be ctdb commit
0889ae3c237bdb3bd72d45f2f64f5e5d8420870c)
Ronnie Sahlberg [Wed, 1 Apr 2009 06:21:38 +0000 (17:21 +1100)]
Change the (dodgy) seqnumfrequency variable to have ms resolution instead of second resolution.
Rename the variable to SeqnumInterval for
1, it is an interval and not a 1/interval unit
2, so that we catch when people use this old variable and can update the sysconfig file instead of silently changin semantics of this variable
this is a real dodgy variable
(This used to be ctdb commit
68eac459e5d2b6b534f72821036675ffe5d7a350)
Ronnie Sahlberg [Wed, 1 Apr 2009 06:13:48 +0000 (17:13 +1100)]
remove a prototype for a function no longer used
(This used to be ctdb commit
9ac9745ba9296d01e3b18148ae8c3240e51cf090)
Ronnie Sahlberg [Tue, 31 Mar 2009 09:04:45 +0000 (20:04 +1100)]
new release 1.0.78
(This used to be ctdb commit
00d2213613822b758939019361a619bd7d7f4984)
Ronnie Sahlberg [Tue, 31 Mar 2009 09:00:00 +0000 (20:00 +1100)]
we should also install the 11.natgw eventscript if we want to be able to use it
(This used to be ctdb commit
42e2797271bc1cdb4eecf1227d4c2db668587193)
Ronnie Sahlberg [Tue, 31 Mar 2009 03:38:52 +0000 (14:38 +1100)]
install a default /etc/ctdb/notify.sh script as example on how to use
snmptrap/email to notify that a node has changed health status
(This used to be ctdb commit
ee52c0866e2b26c396fe60946159c559d47199eb)
Ronnie Sahlberg [Tue, 31 Mar 2009 03:23:31 +0000 (14:23 +1100)]
add a mechanism where the ctdb daemon will run a usercontrolled script when the node status changes to/from UNHEALTHY state.
This would allow a sysadmin to set up ctdb to send an email/snmptrap/... when the status of the node changes.
(This used to be ctdb commit
ce534a83a05dbd40238e4eee0669d60ff396f935)
Ronnie Sahlberg [Tue, 31 Mar 2009 00:42:10 +0000 (11:42 +1100)]
new version 1.0.77
(This used to be ctdb commit
274a4a1fe2e016f33296ebfc5ed6337ce3141d06)
Ronnie Sahlberg [Tue, 31 Mar 2009 00:33:28 +0000 (11:33 +1100)]
we must also try to set the routes when we release an ip since during the release/10.interfaces there can actually be a window where the kernel decides to remove all addresses (before we manually add them back in 10.interfaces) during which the kernel may also decide to delete all routes since there are no gateways reachable through this interface anymore.
(This used to be ctdb commit
34633223a46caaa079da233663f9c6dcc1803f87)
Ronnie Sahlberg [Wed, 25 Mar 2009 03:52:08 +0000 (14:52 +1100)]
new version 1.0.76
(This used to be ctdb commit
56b7095994d1de95e40a223ed503b5572ea9d1b9)
Ronnie Sahlberg [Wed, 25 Mar 2009 03:46:05 +0000 (14:46 +1100)]
change the ctdb command table to allow us to describe commands which can be run independtly of the ctdb daemon.
create a new debugging command xpnn which discovers the pnn of the local node and which works even if the local daemon is not running
(This used to be ctdb commit
cd78765f9400d7abce7929a2dd199f65226e7664)
Ronnie Sahlberg [Wed, 25 Mar 2009 02:46:41 +0000 (13:46 +1100)]
iupdate the documentation for NATGW to reflect that you can now use
multiple natgw groups in one cluster
(This used to be ctdb commit
e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31)
Ronnie Sahlberg [Wed, 25 Mar 2009 02:37:57 +0000 (13:37 +1100)]
update how the NATGW configuration works.
allow the cluster to be partitioned into multiple disjoint natgw subsets
(This used to be ctdb commit
1046885cd22b5001e0251de2e536b5f6793459be)
Ronnie Sahlberg [Tue, 24 Mar 2009 08:02:00 +0000 (19:02 +1100)]
web: fix typo
Conflicts:
web/index.html
(This used to be ctdb commit
95d22e4cf265d2119f72200ab0ec708f095853df)
Ronnie Sahlberg [Tue, 24 Mar 2009 07:59:27 +0000 (18:59 +1100)]
update the documentatio n with all the new commands we supprot in the
ctdb tool
(This used to be ctdb commit
ae317b2013eee01c4c0a5108c03f4024bea9e313)
Ronnie Sahlberg [Tue, 24 Mar 2009 07:23:56 +0000 (18:23 +1100)]
fix the html so that mine and obnox names are shown
(This used to be ctdb commit
0840aa2bd31b2da95342dca8ff35786a3d998688)
Ronnie Sahlberg [Tue, 24 Mar 2009 06:49:55 +0000 (17:49 +1100)]
Merge branch 'obnox'
(This used to be ctdb commit
972036a5d510fb9b399f1ee34a8861dee4221267)
Ronnie Sahlberg [Tue, 24 Mar 2009 03:08:57 +0000 (14:08 +1100)]
new version 1.0.75
(This used to be ctdb commit
857733ae2bdfa0037af224abfabc020e2ac384c7)
Ronnie Sahlberg [Tue, 24 Mar 2009 03:05:31 +0000 (14:05 +1100)]
create a varient of kill_tcp_connections that only kills off the local side of a connection
(This used to be ctdb commit
dc2f28f7c988364b5d45f3048be4db3e5ff113b3)
Ronnie Sahlberg [Tue, 24 Mar 2009 02:51:32 +0000 (13:51 +1100)]
set --single-public-ip when lvs is used
(This used to be ctdb commit
292fff6eace39141591871e12f9a64e3441237be)
Ronnie Sahlberg [Tue, 24 Mar 2009 02:45:11 +0000 (13:45 +1100)]
we need to set the port properly in the parse_ip helper
(This used to be ctdb commit
43fe18d86995744ba61c7a6405b70edcb265930a)
Ronnie Sahlberg [Mon, 23 Mar 2009 10:44:35 +0000 (21:44 +1100)]
add michael adams as one of the ctdb developers on the main ctdb webpage
(This used to be ctdb commit
be50059c33845fec260ca53975d421a890303880)
Michael Adam [Mon, 23 Mar 2009 09:07:44 +0000 (10:07 +0100)]
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit
39a972b0d6d0d70282c25c54a124b67431467e77)
root [Mon, 23 Mar 2009 08:07:45 +0000 (19:07 +1100)]
add a new command "ctdb scriptstatus"
this command shows which eventscripts were executed during the last monitoring cycle and the status from each eventscript.
If an eventscript timedout or returned an error we also
show the output from the eventscript.
Example :
[root@rcn1 ctdb-git]# ./bin/ctdb scriptstatus
6 scripts were executed last monitoring cycle
00.ctdb Status:OK Duration:0.021 Mon Mar 23 19:04:32 2009
10.interface Status:OK Duration:0.048 Mon Mar 23 19:04:32 2009
20.multipathd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
40.vsftpd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
41.httpd Status:OK Duration:0.011 Mon Mar 23 19:04:33 2009
50.samba Status:ERROR Duration:0.057 Mon Mar 23 19:04:33 2009
OUTPUT:ERROR: Samba tcp port 445 is not responding
Add a new helper function "switch_from_server_to_client()" which both
the recovery daemon can use as well as in the child process we start for running the actual eventscripts.
Create several new controls, both for the eventscript child process to inform the master daemon of the current status of the scripts as well as for the ctdb tool to extract this information from the runninc daemon.
(This used to be ctdb commit
c98f90ad61c9b1e679116fbed948ddca4111968d)
root [Mon, 23 Mar 2009 01:37:30 +0000 (12:37 +1100)]
create a helper function that converts a ctdb instance in daemon mode to become
a ctdb client instance.
use this from the recovery daemon child process to switch to client mode
and connect back to the main daemon
(This used to be ctdb commit
16f31786a031255ab5b3099a0a3c745de973347a)
Ronnie Sahlberg [Wed, 18 Mar 2009 23:43:57 +0000 (10:43 +1100)]
The wbinfo --sequence command has been depreciated in favor of the new
--online-status command
(This used to be ctdb commit
b6e34503ac094a274a569a69e3d93d92ad911f4d)
Ronnie Sahlberg [Wed, 18 Mar 2009 23:17:44 +0000 (10:17 +1100)]
update the natgw eventscript and documentation
(This used to be ctdb commit
95d8ddbc2dd0b159e8df003502c3c336668d2c41)
root [Wed, 18 Mar 2009 08:19:49 +0000 (19:19 +1100)]
redo how the natgw is done. just use a default route with a high metric instead of fancy policyrouting
(This used to be ctdb commit
f03bd2b3d906dac9fb876dca54535d22e9cf1b9e)
Ronnie Sahlberg [Tue, 17 Mar 2009 23:05:00 +0000 (10:05 +1100)]
add documentation for the NAT-GW feature
(This used to be ctdb commit
b6f7cddc68508e52bc65b357b0b77258ae96362a)
root [Tue, 17 Mar 2009 22:33:58 +0000 (09:33 +1100)]
change the NATGW_ example in sysconfig to make it more realistic
(This used to be ctdb commit
742283a8f8da7c614ee3a30d48c430e3a3bceeb9)
root [Mon, 16 Mar 2009 20:35:53 +0000 (07:35 +1100)]
NAT-GW updates. Describe the functionality in the sysconfig file
(This used to be ctdb commit
4c598ab6f8e9b826d437b9ab869c4490f7c4faba)
Ronnie Sahlberg [Sun, 15 Mar 2009 22:27:56 +0000 (09:27 +1100)]
new version 1.0.74
(This used to be ctdb commit
0772190203d501a39072f16948604742d7d59a5e)
Ronnie Sahlberg [Sun, 15 Mar 2009 22:21:24 +0000 (09:21 +1100)]
From C Cowan, AIX needs to set sockaddr.sa_len to a consistent value for
the address type used or the connect() call will fail.
(This used to be ctdb commit
d416c0e1e57a42f7ab52de903dbd8b5e111decfe)
root [Thu, 12 Mar 2009 01:33:19 +0000 (12:33 +1100)]
make sure we can collect proper mmfs data
(This used to be ctdb commit
76d655f9aa3ebd39e7a40d0bbd85e40d08f3e90b)
Michael Adam [Mon, 9 Mar 2009 23:21:04 +0000 (00:21 +0100)]
ctdb.sysconfig: add CTDB_MANAGES_HTTPD comment section
Michael
(This used to be ctdb commit
ccaf9ebe062127124cf23e69dcd2ac2edda40020)
Michael Adam [Sun, 8 Mar 2009 23:20:30 +0000 (00:20 +0100)]
events.d/50.samba: allow CTDB_SERVICE_{SMB,NMB,WINBIND} to be overriden from sysconfig
Michael
(This used to be ctdb commit
b1aba6651143ae1c85b24d78b67c760795ff5bff)
Michael Adam [Sun, 8 Mar 2009 23:08:26 +0000 (00:08 +0100)]
ctdb.sysconfig: add CTDB_INIT_STYLE with explanation
Michael
(This used to be ctdb commit
8518c9e0ffec44677d45f60e63936a831d62ab20)
Michael Adam [Wed, 4 Mar 2009 20:26:25 +0000 (21:26 +0100)]
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit
36709e4325fe9a0f377e8e79741741ded4e7f7b0)
Ronnie Sahlberg [Tue, 3 Mar 2009 20:25:26 +0000 (07:25 +1100)]
new version 1.0.73
(This used to be ctdb commit
ecf26af22245d0f55aded50e8768b0c21495f98c)
root [Tue, 3 Mar 2009 20:21:55 +0000 (07:21 +1100)]
Add a variable CTDB_NFS_SKIP_SHARE_CHECK to sysconfig that can disable the check that all shares are accessable.
This can take very long if there are very many shares and is in that case better to implement in a separate cronjob than in ctdb eventscript
(This used to be ctdb commit
432604a1435cd2b5a7178fb5aedf1d4b61bffeb9)
Michael Adam [Sat, 28 Feb 2009 02:09:13 +0000 (03:09 +0100)]
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit
f0e3cdde7bd35bb586a46c31609398b7d4b05a26)
Michael Adam [Sat, 28 Feb 2009 02:08:31 +0000 (03:08 +0100)]
move common code of system_linux.c and system_aix.c into new system_common.c
Michael
(This used to be ctdb commit
124874847e5e03ce2a44bddfe778f01dfb0a7a03)
Ronnie Sahlberg [Tue, 24 Feb 2009 22:13:16 +0000 (09:13 +1100)]
From Sumit Bose <sbose@redhat.com>
Fix to the makefile dependencies for smnotify so that make -j works
(This used to be ctdb commit
ef9dc810c4309e8eba18d015c73c1b5d0760a4e8)
root [Thu, 19 Feb 2009 23:58:34 +0000 (10:58 +1100)]
make it possible to disable checking all samba shares.
this is a timeconsuming process and might not be feasible to perform if there are very many thousand shares
(This used to be ctdb commit
051ae5f3c13892b860818eac803d348f09845dc6)
Michael Adam [Thu, 19 Feb 2009 22:51:23 +0000 (23:51 +0100)]
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit
7412c6706c2d8ec668d0a6a50471db369f3dbf2b)
Ronnie Sahlberg [Wed, 18 Feb 2009 02:22:26 +0000 (13:22 +1100)]
new version 1.0.72
(This used to be ctdb commit
e1be8cb2dc32f56eabd537b658b47929818b8d01)
Ronnie Sahlberg [Wed, 18 Feb 2009 02:10:03 +0000 (13:10 +1100)]
Merge branch 'martins'
(This used to be ctdb commit
fe4eea45c6b5702a794424037c3f2ab4241d5e5e)
Michael Adam [Mon, 9 Feb 2009 23:28:08 +0000 (00:28 +0100)]
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit
e1c90b12290c682c2cba90e9afa3a09be014e20e)
Ronnie Sahlberg [Fri, 6 Feb 2009 21:10:34 +0000 (08:10 +1100)]
add a licence file
(This used to be ctdb commit
59a04a50e64aae0a89b165d0428e23a8bcf8eb24)
root [Thu, 5 Feb 2009 03:44:46 +0000 (14:44 +1100)]
use netstat to check first and only fall back to netcat if netstat is unavailable
(This used to be ctdb commit
dfb16ce9ed65048d30109851737a9075d071ecdb)
Mathieu PARENT [Tue, 3 Feb 2009 23:50:46 +0000 (00:50 +0100)]
correct ctdbd(1) manpage warning
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
2f42429f6996e98c9bfad49eab9fa23e85d7bec2)
Mathieu PARENT [Tue, 3 Feb 2009 23:48:56 +0000 (00:48 +0100)]
smnotify: fix popt.h include to allow use of system lib
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
e391bde5ac743956fb30ede65030973a1f13dae5)
Michael Adam [Tue, 3 Feb 2009 23:42:33 +0000 (00:42 +0100)]
events 41.httpd: support suse and ubuntu/debian systems for managing apache
The httpd service on suse and ubuntu/debian systems is usually
called "apache2" nowadays.
Note: There are older installs with Apache 1.3 out there, in which case
the service is called "apache". An extra check for these installs could
be useful as a sequel to this patch...
Michael
(This used to be ctdb commit
b9e50e3416fecef6a881be3f1b91be977299293f)
Michael Adam [Tue, 3 Feb 2009 23:28:16 +0000 (00:28 +0100)]
build: print default in help for --with-logdir
Michael
(This used to be ctdb commit
9e2245b9bb795e2d757aacd706a9861a59d1638e)
Michael Adam [Tue, 3 Feb 2009 23:22:01 +0000 (00:22 +0100)]
make: add a "showlayout" target for diagnostics
Michael
(This used to be ctdb commit
79b8c87338a2d40464e87e501daae403a2f14427)
Mathieu PARENT [Tue, 3 Feb 2009 23:15:57 +0000 (00:15 +0100)]
build: Make log-directory configurable indepently of VARDIR
This adds a new configure option "--with-logdir".
logdir defaults to "${localstatedir}/log" .
It is important to have logdir configurable for debian systems,
where localstatedir is set to "/var/lib" and not "/var".
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
b0c6854d1e886456fabdc8f1c3bd21c89311c601)
Michael Adam [Tue, 3 Feb 2009 23:01:15 +0000 (00:01 +0100)]
events.d/41.httpd: fix a typo in the fix of the comment typo
This is embarassing...
Michael
(This used to be ctdb commit
dbd90f6210617b23d5695c4c868392363c75d23b)
Ronnie Sahlberg [Mon, 2 Feb 2009 03:04:40 +0000 (14:04 +1100)]
new version 1.0.71
(This used to be ctdb commit
a6cdf9106074890b76d2eabe496af244e0134d31)
Michael Adam [Fri, 30 Jan 2009 17:30:25 +0000 (18:30 +0100)]
add a simple test script to test ctdb_check_tcp_ports
Michael
(This used to be ctdb commit
2634f1bd216ce18f061a282a53314cb1650dbd05)
Michael Adam [Fri, 30 Jan 2009 17:14:41 +0000 (18:14 +0100)]
ctdb_check_tcp_ports: correctly detect listeners on ipv6 :::<port> w/out netcat
The netstat test only grepped for the ipv4 wildcard address.
Now the ipv6 wildcard listener is correctly detected as well.
Michael
(This used to be ctdb commit
78e7928797e239e71f96eb001460a0dbf943e18f)
Michael Adam [Fri, 30 Jan 2009 15:41:37 +0000 (16:41 +0100)]
ctdb_check_tcp_ports: fail the check if neither netstat nor netcat/nc is found
Michael
(This used to be ctdb commit
25d04bbe9528fafc68751f7beb22daeee3163d34)
Michael Adam [Fri, 30 Jan 2009 15:10:05 +0000 (16:10 +0100)]
ctdb_check_tcp_ports: cope with multiple locations of netcat or nc
This fixes tcp port monitor events on systems, where netcat or nc
is not found in /usr/bin/, Debian, for instance.
The patch also separates the process of finding the binaries and
calling them, moving the detection outside of the loop over the
ports list.
Michael
(This used to be ctdb commit
3adf100e7f0c04aaf2da9ae4c6984cdb708c3b57)
Michael Adam [Thu, 29 Jan 2009 12:22:02 +0000 (13:22 +0100)]
remove include <netinet/in.h> from public ctdb.h
This is not portable.
The ctdb build includes the necessary headers from includes.h.
And users of ctdb should cope with including the necessary
prerequisite headers themselves.
Michael
(This used to be ctdb commit
fedc6983f5dee39152e6f400f89a3e07eab57f0c)
Michael Adam [Thu, 29 Jan 2009 10:46:04 +0000 (11:46 +0100)]
packaging: add a maketarball script
The script extracts the version number from the spec file.
It takes an extra argument, that can be appended to the
version in the tar ball name and directory prefix.
Michael
(This used to be ctdb commit
7c813406d6ba55f6a7418f80b13b0bc83cb67928)
Michael Adam [Wed, 28 Jan 2009 16:40:24 +0000 (17:40 +0100)]
Fix the build on AIX: sys/socket.h needs to be included before ctdb.h
(for struct sockaddr to be defined)
Thanks to William Jojo <w.jojo@hvcc.edu> for reporting.
Michael
(This used to be ctdb commit
7558bca1e99884c02747adb7cbea799d04ee24d5)
Michael Adam [Thu, 29 Jan 2009 09:22:02 +0000 (10:22 +0100)]
autoconf: Make sure the result of the mkdir_has_mode test gets cached.
This fixes the autoconf 2.63 warning
"suspicious cache-id, must contain _cv_ to be cached".
Thanks to William Jojo <w.jojo@hvcc.edu> for reporting.
Michael
(This used to be ctdb commit
f7be553ed0826d31759812d58db91589ccdf8a8c)
Michael Adam [Tue, 27 Jan 2009 16:17:58 +0000 (17:17 +0100)]
events.d/41.httpd: fix a comment typo
Michael
(This used to be ctdb commit
c9a0330989421afc138db6d195acf93f5eeda9fb)
Michael Adam [Mon, 19 Jan 2009 14:33:24 +0000 (15:33 +0100)]
Fix treatment of link local ipv6 addresses: set the scope id.
metze / Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
9d12de1ca6107801dada927729e755c0949d73bf)
Michael Adam [Mon, 19 Jan 2009 13:14:07 +0000 (14:14 +0100)]
ctdb_util: use the parse_ip() function - avoid code duplication
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
1461b78c47810073f8637bc4592cacaadcdaf14b)
Michael Adam [Mon, 19 Jan 2009 18:08:37 +0000 (19:08 +0100)]
ctdb_sys_have_ip: fix ipv6 support for aix, too.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
8b5f1e80e3e2e9ca2198e1baee8af36aa5d6c5b5)
Stefan Metzmacher [Mon, 19 Jan 2009 12:24:09 +0000 (13:24 +0100)]
ctdb_sys_have_ip: don't overwrite input data (setting port to 0)
metze
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
de71ce2195bb4f6a96b12437a2d4d1424fd1c59c)
Michael Adam [Mon, 19 Jan 2009 11:02:18 +0000 (12:02 +0100)]
Fix verification of IP allocation with ipv6 addresses on Linux.
Set sin_port or sin6_port to 0, depending on sa_family.
Michael
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
e0c70110e241b065c42c1c07f32c3657bac5d98b)
Michael Adam [Mon, 19 Jan 2009 20:22:58 +0000 (21:22 +0100)]
events 50.samba: fix control of nmbd without separate nmb service script.
protect all potentially empty $CTDB_SERVICE_* script names
Michael
(This used to be ctdb commit
df0afcbf9a0308fcd6ddcce1ac9366f785576f44)
Michael Adam [Mon, 19 Jan 2009 13:46:30 +0000 (14:46 +0100)]
packaging(RPM): detect and use ccache if available
Michael
(This used to be ctdb commit
c412c9e2d69a3f07e195259f6ad5767fa8160a94)
Michael Adam [Mon, 19 Jan 2009 08:42:48 +0000 (09:42 +0100)]
Makefile: remove extra "/" in paths
Michael
(This used to be ctdb commit
b74ef95004989bcfca5fc6468a6f978a196116ca)
Michael Adam [Sat, 17 Jan 2009 15:18:02 +0000 (16:18 +0100)]
makerpms: fix detection of support for --rsyncable flag in gzip.
Michael
(This used to be ctdb commit
0dafb869265d0c369bb5ce45fbcabc2232d6fced)
Michael Adam [Fri, 16 Jan 2009 13:01:37 +0000 (14:01 +0100)]
ctdb.init: fix typo
Michael
(This used to be ctdb commit
145b85c948603cf977a5c5b53d9d9f63fbdba221)
Michael Adam [Fri, 16 Jan 2009 12:33:13 +0000 (13:33 +0100)]
events 50.samba: also support suse and ubuntu/debain systems
for managing samba and winbind
This uses CTDB_INIT_STYLE as exported by ctdb.init.
suse systems usually have separate init scripts for
smb for smbd and nmb for nmbd, and the ubuntu/debian
start script for smbd and nmbd is called samba instead
of smb (on redhat).
Michael
(This used to be ctdb commit
5fe84f96f3f79baba1f44ba57ce217f501b3c1f8)
Michael Adam [Fri, 16 Jan 2009 12:31:02 +0000 (13:31 +0100)]
funcions: make (nice_)service a noop for empty service name
Michael
(This used to be ctdb commit
4cac2a16b70be772e4f1520020762f63c0bf3efe)
Michael Adam [Fri, 16 Jan 2009 12:28:19 +0000 (13:28 +0100)]
ctdb.init: use detect_init_style() in the init script
and export CTDB_INIT_STYLE, so that event scripts
as called by ctdbd can use it.
Michael
(This used to be ctdb commit
56a10594ea9e44e3f034ac11161fd06e5ae46544)
Michael Adam [Fri, 16 Jan 2009 12:26:57 +0000 (13:26 +0100)]
functions: add detect_init_style().
Michael
(This used to be ctdb commit
ab34a9480b59c649a4fc73a466c8ca0975453ed9)
root [Thu, 15 Jan 2009 23:13:53 +0000 (10:13 +1100)]
new version
(This used to be ctdb commit
73a7b611bf2ef87e92d6b18c538a260aa988a2e5)
Michael Adam [Fri, 19 Dec 2008 10:50:06 +0000 (11:50 +0100)]
ctdb.init: add $network to RequiredStop to match RequiredStart.
This is to make rpm checks (eg.g for SuSE systems) survive.
Michael
(This used to be ctdb commit
22cafa88f59ebe50c11f5b65a414800db79405a9)
Andreas Schneider [Wed, 29 Oct 2008 13:12:04 +0000 (14:12 +0100)]
Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit
b39611c36bb904774fd4032bf2f8003fbdeb5d34)
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit
02893e04154c0590b235082c5a6e5726ceb25dba)
Michael Adam [Wed, 17 Dec 2008 15:01:49 +0000 (16:01 +0100)]
makerpms: fix creation of tarball when gzip does not know "--rsynceable"
--rsynceable is a patch to gzip that not all distributors / packagers
add to gzip. (It has just bitten me on openSUSE.) This path first detects
whether gzip knows about --rsynceable and then calls gzip accordingly.
Michael
(This used to be ctdb commit
62eccefc15e2ca737098980aa0b7d226df73a456)
Michael Adam [Wed, 17 Dec 2008 11:18:09 +0000 (12:18 +0100)]
ctdb.spec: fix version and (RPM-)release number.
Originally, 1.0 was the version in the spec file and 68 was the release.
But in fact everyone talked about ctdb version 1.0.68.
This puts this straight...
Michael
(This used to be ctdb commit
a98a3ff2aad59d51fca6a2f3e2bdcfc99e84fa70)
Michael Adam [Wed, 17 Dec 2008 11:17:15 +0000 (12:17 +0100)]
makerpms: confess
Michael
(This used to be ctdb commit
826511f759c3bfa7c587c97786b955572039d2ac)
Michael Adam [Wed, 17 Dec 2008 11:15:34 +0000 (12:15 +0100)]
makerpms: don't hard-code the version number but extract it from ctdb.spec
Michael
(This used to be ctdb commit
32eac6fc3cce2a9d0a38add56a8bb893e4a85076)
Michael Adam [Wed, 17 Dec 2008 11:13:42 +0000 (12:13 +0100)]
makerpms: remove the need of calling makerpms.sh from the top level directory
Instead, extract needed information from the dirname of the invoked name.
Michael
(This used to be ctdb commit
cf1e46d734ed51b4ac2eb8a09f2f787ae5c51092)
Michael Adam [Wed, 17 Dec 2008 11:12:17 +0000 (12:12 +0100)]
makerpms: don't cd to $SPECDIR but rpmbuild -ba $SPECDIR/$SPECFILE instead
Michael
(This used to be ctdb commit
25dbefc92e7303a7b679a769eb06a7c25fdcf198)
Michael Adam [Wed, 17 Dec 2008 11:09:13 +0000 (12:09 +0100)]
makerpms: catch error of git archive correctly (echo resets $?)
Michael
(This used to be ctdb commit
85e942a26f5e7d4584d31005ff88c36dca215a11)
Michael Adam [Wed, 17 Dec 2008 11:06:25 +0000 (12:06 +0100)]
makerpms: move comment to appropriate place
Michael
(This used to be ctdb commit
ef4caf6874436ff3f451b95586893e39a8cec1ad)
Michael Adam [Wed, 17 Dec 2008 11:05:05 +0000 (12:05 +0100)]
makerpms: use variable (SPECFILE) that is available instead of hard coded file name
Michael
(This used to be ctdb commit
9661b7a4f3773d645d0525c4430e3cccf0f32eb5)
Michael Adam [Mon, 15 Dec 2008 23:30:55 +0000 (00:30 +0100)]
doc: join broken lines in excerpt from log.ctdb
Michael
(This used to be ctdb commit
b7290b0a8325021515a904ac60fa9afa019c9db1)