summaryrefslogtreecommitdiffstats
path: root/ctdb
Commit message (Collapse)AuthorAgeFilesLines
* events 41.httpd: support suse and ubuntu/debian systems for managing apacheMichael Adam2009-02-041-4/+28
| | | | | | | | | | | | | 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)
* build: print default in help for --with-logdirMichael Adam2009-02-041-1/+1
| | | | | | Michael (This used to be ctdb commit 9e2245b9bb795e2d757aacd706a9861a59d1638e)
* make: add a "showlayout" target for diagnosticsMichael Adam2009-02-041-0/+11
| | | | | | Michael (This used to be ctdb commit 79b8c87338a2d40464e87e501daae403a2f14427)
* build: Make log-directory configurable indepently of VARDIRMathieu PARENT2009-02-043-1/+14
| | | | | | | | | | | 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)
* events.d/41.httpd: fix a typo in the fix of the comment typoMichael Adam2009-02-041-1/+1
| | | | | | | | This is embarassing... Michael (This used to be ctdb commit dbd90f6210617b23d5695c4c868392363c75d23b)
* new version 1.0.71Ronnie Sahlberg2009-02-021-1/+3
| | | | (This used to be ctdb commit a6cdf9106074890b76d2eabe496af244e0134d31)
* add a simple test script to test ctdb_check_tcp_portsMichael Adam2009-01-301-0/+17
| | | | | | Michael (This used to be ctdb commit 2634f1bd216ce18f061a282a53314cb1650dbd05)
* ctdb_check_tcp_ports: correctly detect listeners on ipv6 :::<port> w/out netcatMichael Adam2009-01-301-1/+5
| | | | | | | | | 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)
* ctdb_check_tcp_ports: fail the check if neither netstat nor netcat/nc is foundMichael Adam2009-01-301-0/+4
| | | | | | Michael (This used to be ctdb commit 25d04bbe9528fafc68751f7beb22daeee3163d34)
* ctdb_check_tcp_ports: cope with multiple locations of netcat or ncMichael Adam2009-01-301-8/+24
| | | | | | | | | | | | | 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)
* remove include <netinet/in.h> from public ctdb.hMichael Adam2009-01-291-2/+0
| | | | | | | | | | | 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)
* packaging: add a maketarball scriptMichael Adam2009-01-291-0/+42
| | | | | | | | | | 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)
* Fix the build on AIX: sys/socket.h needs to be included before ctdb.hMichael Adam2009-01-291-0/+1
| | | | | | | | | | (for struct sockaddr to be defined) Thanks to William Jojo <w.jojo@hvcc.edu> for reporting. Michael (This used to be ctdb commit 7558bca1e99884c02747adb7cbea799d04ee24d5)
* autoconf: Make sure the result of the mkdir_has_mode test gets cached.Michael Adam2009-01-291-4/+4
| | | | | | | | | | | 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)
* events.d/41.httpd: fix a comment typoMichael Adam2009-01-271-1/+1
| | | | | | Michael (This used to be ctdb commit c9a0330989421afc138db6d195acf93f5eeda9fb)
* Fix treatment of link local ipv6 addresses: set the scope id.Michael Adam2009-01-197-20/+30
| | | | | | | | metze / Michael Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 9d12de1ca6107801dada927729e755c0949d73bf)
* ctdb_util: use the parse_ip() function - avoid code duplicationMichael Adam2009-01-191-12/+2
| | | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 1461b78c47810073f8637bc4592cacaadcdaf14b)
* ctdb_sys_have_ip: fix ipv6 support for aix, too.Michael Adam2009-01-191-2/+12
| | | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 8b5f1e80e3e2e9ca2198e1baee8af36aa5d6c5b5)
* ctdb_sys_have_ip: don't overwrite input data (setting port to 0)Stefan Metzmacher2009-01-191-1/+3
| | | | | | | | metze Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit de71ce2195bb4f6a96b12437a2d4d1424fd1c59c)
* Fix verification of IP allocation with ipv6 addresses on Linux.Michael Adam2009-01-191-1/+8
| | | | | | | | | | 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)
* events 50.samba: fix control of nmbd without separate nmb service script.Michael Adam2009-01-191-9/+9
| | | | | | | | protect all potentially empty $CTDB_SERVICE_* script names Michael (This used to be ctdb commit df0afcbf9a0308fcd6ddcce1ac9366f785576f44)
* packaging(RPM): detect and use ccache if availableMichael Adam2009-01-191-1/+8
| | | | | | Michael (This used to be ctdb commit c412c9e2d69a3f07e195259f6ad5767fa8160a94)
* Makefile: remove extra "/" in pathsMichael Adam2009-01-191-2/+2
| | | | | | Michael (This used to be ctdb commit b74ef95004989bcfca5fc6468a6f978a196116ca)
* makerpms: fix detection of support for --rsyncable flag in gzip.Michael Adam2009-01-171-1/+1
| | | | | | Michael (This used to be ctdb commit 0dafb869265d0c369bb5ce45fbcabc2232d6fced)
* ctdb.init: fix typoMichael Adam2009-01-161-1/+1
| | | | | | Michael (This used to be ctdb commit 145b85c948603cf977a5c5b53d9d9f63fbdba221)
* events 50.samba: also support suse and ubuntu/debain systemsMichael Adam2009-01-161-6/+41
| | | | | | | | | | | | | | | 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)
* funcions: make (nice_)service a noop for empty service nameMichael Adam2009-01-161-0/+8
| | | | | | Michael (This used to be ctdb commit 4cac2a16b70be772e4f1520020762f63c0bf3efe)
* ctdb.init: use detect_init_style() in the init scriptMichael Adam2009-01-161-10/+7
| | | | | | | | | and export CTDB_INIT_STYLE, so that event scripts as called by ctdbd can use it. Michael (This used to be ctdb commit 56a10594ea9e44e3f034ac11161fd06e5ae46544)
* functions: add detect_init_style().Michael Adam2009-01-161-0/+14
| | | | | | Michael (This used to be ctdb commit ab34a9480b59c649a4fc73a466c8ca0975453ed9)
* new versionroot2009-01-161-1/+11
| | | | (This used to be ctdb commit 73a7b611bf2ef87e92d6b18c538a260aa988a2e5)
* ctdb.init: add $network to RequiredStop to match RequiredStart.Michael Adam2009-01-161-1/+1
| | | | | | | | This is to make rpm checks (eg.g for SuSE systems) survive. Michael (This used to be ctdb commit 22cafa88f59ebe50c11f5b65a414800db79405a9)
* Fix circular dependency error with autoconf 2.6.3.Andreas Schneider2009-01-161-0/+2
| | | | | | | | | 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)
* makerpms: fix creation of tarball when gzip does not know "--rsynceable"Michael Adam2009-01-161-1/+7
| | | | | | | | | | --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)
* ctdb.spec: fix version and (RPM-)release number.Michael Adam2009-01-161-2/+2
| | | | | | | | | | 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)
* makerpms: confessMichael Adam2009-01-161-0/+1
| | | | | | Michael (This used to be ctdb commit 826511f759c3bfa7c587c97786b955572039d2ac)
* makerpms: don't hard-code the version number but extract it from ctdb.specMichael Adam2009-01-161-2/+3
| | | | | | Michael (This used to be ctdb commit 32eac6fc3cce2a9d0a38add56a8bb893e4a85076)
* makerpms: remove the need of calling makerpms.sh from the top level directoryMichael Adam2009-01-161-5/+5
| | | | | | | | Instead, extract needed information from the dirname of the invoked name. Michael (This used to be ctdb commit cf1e46d734ed51b4ac2eb8a09f2f787ae5c51092)
* makerpms: don't cd to $SPECDIR but rpmbuild -ba $SPECDIR/$SPECFILE insteadMichael Adam2009-01-161-2/+1
| | | | | | Michael (This used to be ctdb commit 25dbefc92e7303a7b679a769eb06a7c25fdcf198)
* makerpms: catch error of git archive correctly (echo resets $?)Michael Adam2009-01-161-1/+2
| | | | | | Michael (This used to be ctdb commit 85e942a26f5e7d4584d31005ff88c36dca215a11)
* makerpms: move comment to appropriate placeMichael Adam2009-01-161-3/+1
| | | | | | Michael (This used to be ctdb commit ef4caf6874436ff3f451b95586893e39a8cec1ad)
* makerpms: use variable (SPECFILE) that is available instead of hard coded ↵Michael Adam2009-01-161-1/+1
| | | | | | | | file name Michael (This used to be ctdb commit 9661b7a4f3773d645d0525c4430e3cccf0f32eb5)
* doc: join broken lines in excerpt from log.ctdbMichael Adam2009-01-161-96/+48
| | | | | | Michael (This used to be ctdb commit b7290b0a8325021515a904ac60fa9afa019c9db1)
* ctdb.samba.org: fix instruction for turning off samba service autostartMichael Adam2009-01-161-2/+8
| | | | | | | | Extend to show valid commands on Redhat and SuSE Linux. Michael (This used to be ctdb commit cdea4893c24511ffc1a7338ca3eb6cfd86d68086)
* Fix segfault in ip takeover fallback code.Stefan Metzmacher2009-01-161-0/+3
| | | | | | | | metze Signed-off-by: Michael Adam <obnox@samba.org> (This used to be ctdb commit 3b88f3dec5227e8579672974f7028fb356ee1d94)
* finish the ipv6 support.root2009-01-134-40/+90
| | | | | | allow clients to register either ipv4 or ipv6 client connections to the tickles list (This used to be ctdb commit d9b44d7c3255b0fd7359b9afeb613e6ff4c4eaac)
* new version 1.0.69Ronnie Sahlberg2008-12-181-1/+4
| | | | (This used to be ctdb commit fd85e53794ef7fe24c51c94534370545a0711bd4)
* add better errorchecking that nodes we try to talk to using the "ctdb" tool ↵root2008-12-171-26/+45
| | | | | | | | | | actually exist and that it is connected. two new dedicated ctdb error codes 21: node does not exist 22: node is disconnected (This used to be ctdb commit 7ee6db06162ad5a554058bb6160ad37b24fe42e0)
* dont call ctdb_fatal() just because we are asked to restart a connectionRonnie Sahlberg2008-12-171-2/+2
| | | | | | | | | | | | | | to a remote node and ctdb->methods is NULL. This can happen when we are in the middle of a normal shutdown of the daemon and we have already shut down the transport layer (thus setting ctdb->methods == NULL in the transport layer destructor) band there is some unprocessed data related to a remote node. This prevents an ugly race condition where ctdb might sometimes (rare) cause a core dump during "ctdb shutdown". (This used to be ctdb commit fc4e8b5a5d3699221620a8d76701c8589f2b4ff1)
* skip directories containing macros (%) in ctdb_check_directories_probeMichael Adam2008-12-161-0/+1
| | | | | | | | | This prevents the monitor action of 50.samba from failing on e.g. a typical [homes] service with "path = /home/%S" . Michael (This used to be ctdb commit 023d6c2e3017d323b5a70f987f3b4e0b8b8f0f7b)
* ctdb.init: add Default-Start to init script to enable autostart.Michael Adam2008-12-161-0/+1
| | | | | | Michael (This used to be ctdb commit a1a0fa6eb37b5432cc2b176e252856d37fcc4fc8)