-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rbatchrc
187 lines (163 loc) · 3.64 KB
/
.rbatchrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# RBatch Run-Conf (.rbatchrc)
#
# This format is YAML.
#
# -------------------
# Global setting
# -------------------
# Conf Directory
#
# Default is "<home>/conf"
# <home> is replaced to ${RB_HOME}
#
#conf_dir : <home>/config/
#conf_dir : /etc/rbatch/
# Common Config file name
#
# Default is "common.yaml"
#
#common_conf_name : share.yaml
# Library Directory
#
# Default is "<home>/lib"
# <home> is replaced to ${RB_HOME}
#
#lib_dir : /usr/local/lib/rbatch/
# Auto Library Load
#
# Default is true
# If true, require "(library directory)/*.rb" before script run.
#
#auto_lib_load : true
#auto_lib_load : false
# Forbit Script Running Doubly
#
# Default is false.
# If true, two same name scripts cannot run at the same time.
#
#forbid_double_run : true
#forbid_double_run : false
# RBatch Journal Level
#
# Default is 1
# RBatch Journal is message of RBatch and is output to STDOUT.
# If 2, put much more information.
# If 0, put nothing.
#
# Example of RBatch Journal are follows.
# [RBatch] === START RBatch === (PID=5795)
# [RBatch] RB_HOME : "/path/to/"
# [RBatch] Load Run-Conf: "/path/to/.rbatchrc"
# [RBatch] Start Script : "/path/to/bin/hello.rb"
# ....
#
#rbatch_journal_level : 2
#rbatch_journal_level : 0
# Mix RBatch Journal to Logs
#
# Default is true.
# If true, RBatch Journal is output not only STDOUT
# but also log file(s) which is(are) opened at time.
#
#mix_rbatch_journal_to_logs : true
#mix_rbatch_journal_to_logs : false
# -------------------
# Log setting
# -------------------
# Log Directory
#
# Default is "<home>/log"
# <home> is replaced to ${RB_HOME}
#
#log_dir : <home>/rb_log
#log_dir : /var/log/rbatch/
# Log File Name
#
# Default is "<date>_<time>_<prog>.log".
# <data> is replaced to YYYYMMDD date string
# <time> is replaced to HHMMSS time string
# <prog> is replaced to Program file base name (except extention).
# <host> is replaced to Hostname.
#
#log_name : "<date>_<time>_<prog>.log"
#log_name : "<date>_<prog>.log"
# Append Log
#
# Default is ture.
#
#log_append : true
#log_append : false
# Log Level
#
# Default is "info".
# Effective values are "debug","info","wran","error",and "fatal".
#
#log_level : "debug"
#log_level : "warn"
# Print log string both log file and STDOUT
#
# Default is false.
#
log_stdout : true
# Delete old log files
#
# Default is false.
# If this is true, delete old log file when RBatch::Log.new is called.
# A log file to delete is a log file which was made by the
# RBatch::Log instance, and log filename format include "<date>".
#
log_delete_old_log : true
# Expire Date of Log Files
#
# Default is 7.
#
log_delete_old_log_date : 14
# Log buffering
#
# Default is false.
# If true, log output is bufferd.
#
#log_bufferd : true
#log_bufferd : false
# Output Exit Status
#
# Default is true.
# When you use the "exist" method in a log block,
# output exit status into the log file.
#
#log_output_exit_status : true
#log_output_exit_status : false
# Send Mail
#
# Default is false.
# When log.error(msg) or log.fatal(msg) called , send e-mail
# including "msg".
#
#log_send_mail : true
# Mail Parameters
#
#log_mail_to : "[email protected]"
#log_mail_from : "[email protected]"
#log_mail_server_host : "localhost"
#log_mail_server_port : 25
#
# if you want to send multiple recipients...
#
#log_mail_to :
# - "[email protected]"
# - "[email protected]"
# -------------------
# Cmd setting
# -------------------
# Raise Exception
#
# Default is false.
# If true, when command exit status is not 0, raise exception.
#
#cmd_raise : true
#cmd_raise : false
# Command Timeout
#
# Default is 0 [sec] (=no timeout).
#
#cmd_timeout : 5