Summary: | net-fs/samba cluster flags wrong config file /etc/ctdb/functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matteo Contri <matteo> |
Component: | [OLD] Server | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bkohler, michael |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | search ctdb config file also in /etc/conf.d |
Description
Matteo Contri
2012-01-02 10:17:05 UTC
Created attachment 297621 [details, diff]
search ctdb config file also in /etc/conf.d
i tried to create a patch to search config file also in gentoo way. it works for me.
Just saw this bug. I've been using the same patch for my own production system. The reason this is required if it isn't already clear is that all scripts under /etc/ctdb/events.d have variables that get pulled in when sourcing /etc/ctdb/functions. The /etc/ctdb/functions file needs to know where the variables are set. In Gentoo's case this is in /etc/conf.d/ctdb, but other distro's have different locations. Adding this patch searches the following locations in order (with $1 being set to ctdb): - /etc/sysconfig/$1 - /etc/default/$1 - $CTDB_BASE/sysconfig/$1 - /etc/config.d/$1 - /etc/conf.d/$1 This patch should probably be submitted upstream if it is committed within Gentoo. I would suggest to use /etc/default Until upstream agreed to add in /etc/conf.d/ I think we should drop this And move to the new location. /etc/ctdb/ctdbd.conf It should work better... As all the configuration are under /etc/ctdb/* Hope to fix that on "Bug 500332" Please reopen if this still affects current samba versions |