Add initial Gentooo packaging
This commit is contained in:
22
gentoo/files/pgmon.openrc
Normal file
22
gentoo/files/pgmon.openrc
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
agent_name=${RC_SERVICE#pgmon.}
|
||||
agent_name=${agent_name:-pgmon}
|
||||
|
||||
command="/usr/local/bin/pgmon"
|
||||
command_args="--server --config /etc/pgmon/${agent_name}.cfg"
|
||||
command_user="zabbix:zabbix"
|
||||
|
||||
pidfile="/run/pgmon/${agent_name}.pid"
|
||||
|
||||
start_pre() {
|
||||
checkpath -d "/run/pgmon"
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading ${RC_SVCNAME}"
|
||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user