acl/app/wizard/tmpl/master/master_trigger.cf

61 lines
1.8 KiB
CFEngine3
Raw Normal View History

# service type private unpriv chroot wakeup maxproc command + args
service $<PROGRAM>
{
# <09><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD>
master_disable = no
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>׽ӿ<D7BD>
master_service = $<PROGRAM>.sock
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
master_type = unix
# <09><><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD>ǿգ<C7BF><D5A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD>Ϣ֪ͨ<CDA8>÷<EFBFBD><C3B7><EFBFBD>
# master_notify_addr = 127.0.0.1:5801
# <09>ʼ<EFBFBD>֪ͨ<CDA8><D6AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# master_notify_recipients = zhengshuxin@hotmail.com
# <09>Ƿ<EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD>˽<EFBFBD>з<EFBFBD><D0B7><EFBFBD>, <20><><EFBFBD><EFBFBD>Ϊ y, <20><><EFBFBD><EFBFBD><EFBFBD>׽ӿڴ<D3BF><DAB4><EFBFBD><EFBFBD><EFBFBD> {install_path}/var/log/private/ Ŀ¼<C4BF><C2BC>,
# <09><><EFBFBD><EFBFBD>Ϊ n, <20><><EFBFBD><EFBFBD><EFBFBD>׽ӿڴ<D3BF><DAB4><EFBFBD><EFBFBD><EFBFBD> {install_path}/var/log/public/ Ŀ¼<C4BF><C2BC>,
master_private = y
master_unpriv = n
# <09>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ chroot: n -- no, y -- yes
master_chroot = n
# ÿ<><C3BF><EFBFBD>೤ʱ<E0B3A4><EFBFBD><E4B4A5>һ<EFBFBD>Σ<EFBFBD><CEA3><EFBFBD>λΪ<CEBB><CEAA>(<28><><EFBFBD><EFBFBD> trigger ģʽ<C4A3><CABD>Ч)
master_wakeup = 4
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
master_maxproc = 10
# <09><><EFBFBD>̳<EFBFBD><CCB3><EFBFBD><EFBFBD><EFBFBD>
master_command = $<PROGRAM>
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>Ϊ: -u [<5B>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>ͨ<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]
# master_args =
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE>¼<EFBFBD>ļ<EFBFBD>
master_log = {install_path}/var/log/$<PROGRAM>
2013-11-05 22:23:23 +08:00
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>tag:level; tag:level; tab:level, <20>磺all:1; 101:2
# master_debug =
# <09><><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӽ<EFBFBD><D3BD>̵Ļ<CCB5><C4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8> getenv("SERVICE_ENV") <20><><EFBFBD>ô<EFBFBD>ֵ
# master_env = logme:FALSE, priority:E_LOG_INFO, action:E_LOG_PER_DAY, flush:sync_flush, imit_size:512,\
# sync_action:E_LOG_SEM, sem_name:/tmp/trigger.sem
# <09>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> core <20>ļ<EFBFBD>
# trigger_enable_core = 1
# ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>
trigger_use_limit = 250
# <09><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>PID<49><44>λ<EFBFBD><CEBB>(<28><><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>˵û<CBB5><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
trigger_pid_dir = {install_path}/var/pid
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ڵ<EFBFBD>·<EFBFBD><C2B7>
trigger_queue_dir = {install_path}/var
# <09><>д<EFBFBD><D0B4>ʱʱ<CAB1><CAB1>, <20><>λΪ<CEBB><CEAA>
trigger_rw_timeout = 1800
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
trigger_buf_size = 8192
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>
trigger_owner = owner
# <09><> select <20><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>ʱ<EFBFBD><CAB1>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
# <09><>λΪ<CEBB><CEAA>
# trigger_delay_sec = 1
# <09><>λΪ΢<CEAA><CEA2>
# trigger_delay_usec = 5000
# trigger_daemon_timeout = 1800
}