Run pgmon in the background
This commit is contained in:
parent
9a98f51b6f
commit
c20ecbadfc
@ -3,8 +3,7 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
# Where to write/find the agent PID
|
# Where to write/find the agent PID
|
||||||
#pid_file=/tmt/pgmon.pid
|
#pid_file=
|
||||||
pid_file=/run/pgmon/pgmon.pid
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Agent communication settings
|
# Agent communication settings
|
||||||
@ -12,7 +11,6 @@ pid_file=/run/pgmon/pgmon.pid
|
|||||||
|
|
||||||
# IPC socket
|
# IPC socket
|
||||||
#ipc_socket=/tmp/pgmon.sock
|
#ipc_socket=/tmp/pgmon.sock
|
||||||
ipc_socket=/run/pgmon/pgmon.sock
|
|
||||||
|
|
||||||
# IPC communication timeout (s)
|
# IPC communication timeout (s)
|
||||||
#ipc_timeout=10
|
#ipc_timeout=10
|
||||||
|
|||||||
@ -10,12 +10,12 @@ PID_FILE="/run/pgmon/${agent_name}.pid"
|
|||||||
LOG_FILE="/var/log/${agent_name}.log"
|
LOG_FILE="/var/log/${agent_name}.log"
|
||||||
SOCKET="/var/run/${agent_name}.socket"
|
SOCKET="/var/run/${agent_name}.socket"
|
||||||
|
|
||||||
command="/usr/bin/pgmon"
|
|
||||||
command_args="--server -c '$CONFIG_FILE' -l '$LOG_FILE' -p '$PID_FILE' -s '$SOCKET'"
|
|
||||||
command_user="zabbix:zabbix"
|
|
||||||
|
|
||||||
pidfile="$PID_FILE"
|
pidfile="$PID_FILE"
|
||||||
|
|
||||||
|
command_background="/usr/bin/pgmon"
|
||||||
|
command_args="--server -c '$CONFIG_FILE' -l '$LOG_FILE' -s '$SOCKET'"
|
||||||
|
command_user="zabbix:zabbix"
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
checkpath -d -m 0755 -o "${command_user}" "/run/pgmon"
|
checkpath -d -m 0755 -o "${command_user}" "/run/pgmon"
|
||||||
checkpath -d -m 0755 -o "${command_user}" "/var/log/pgmon"
|
checkpath -d -m 0755 -o "${command_user}" "/var/log/pgmon"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user