Skip to content

Commit

Permalink
Change default configuration file to /etc/booth/booth.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaju Zhang <jjzhang@suse.de>
  • Loading branch information
jjzhang committed Mar 10, 2012
1 parent b048855 commit 91a2b5a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/booth.conf.example
@@ -1,4 +1,4 @@
# The booth configuration file is "/etc/sysconfig/booth". You need to # The booth configuration file is "/etc/booth/booth.conf". You need to
# prepare the same booth configuration file on each arbitrator and # prepare the same booth configuration file on each arbitrator and
# each node in the cluster sites where the booth daemon can be launched. # each node in the cluster sites where the booth daemon can be launched.
# Here is an example of the configuration file: # Here is an example of the configuration file:
Expand Down
2 changes: 0 additions & 2 deletions script/lsb/booth-arbitrator
Expand Up @@ -24,8 +24,6 @@ exec="/usr/sbin/$prog"
type="arbitrator" type="arbitrator"
lockfile="/var/run/booth.pid" lockfile="/var/run/booth.pid"


[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

. /etc/rc.status . /etc/rc.status


internal_status() { internal_status() {
Expand Down
2 changes: 1 addition & 1 deletion src/booth.h
Expand Up @@ -29,7 +29,7 @@
#define BOOTH_LOG_DIR "/var/log" #define BOOTH_LOG_DIR "/var/log"
#define BOOTH_LOGFILE_NAME "booth.log" #define BOOTH_LOGFILE_NAME "booth.log"
#define BOOTH_DEFAULT_LOCKFILE BOOTH_RUN_DIR "/booth.pid" #define BOOTH_DEFAULT_LOCKFILE BOOTH_RUN_DIR "/booth.pid"
#define BOOTH_DEFAULT_CONF "/etc/sysconfig/booth" #define BOOTH_DEFAULT_CONF "/etc/booth/booth.conf"


#define DAEMON_NAME "booth" #define DAEMON_NAME "booth"
#define BOOTH_NAME_LEN 63 #define BOOTH_NAME_LEN 63
Expand Down
2 changes: 1 addition & 1 deletion test/boothrunner.py
Expand Up @@ -6,7 +6,7 @@
import unittest import unittest


class BoothRunner: class BoothRunner:
default_config_file = '/etc/sysconfig/booth' default_config_file = '/etc/booth/booth.conf'
default_lock_file = '/var/run/booth.pid' default_lock_file = '/var/run/booth.pid'


def __init__(self, boothd_path, mode, args): def __init__(self, boothd_path, mode, args):
Expand Down

0 comments on commit 91a2b5a

Please sign in to comment.