FreeBSD Bugzilla – Attachment 206992 Details for
Bug 240139
net-mgmt/zabbix*: Add status command to the zabbix_java rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch_zabbix_java.in.diff (text/plain), 1.07 KB, created by
TAO ZHOU
on 2019-08-29 02:06:06 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
TAO ZHOU
Created:
2019-08-29 02:06:06 UTC
Size:
1.07 KB
patch
obsolete
>--- zabbix_java.in.orig 2018-08-04 22:37:18.000000000 +1000 >+++ zabbix_java.in 2019-08-22 08:13:34.230152000 +1000 >@@ -21,7 +21,35 @@ > > : ${zabbix_java_enable:=NO} > >-start_cmd="/usr/bin/su -m zabbix -c %%PREFIX%%/sbin/zabbix_java/startup.sh" >-stop_cmd="/usr/bin/su -m zabbix -c %%PREFIX%%/sbin/zabbix_java/shutdown.sh" >+. /usr/local/sbin/zabbix_java/settings.sh >+start_cmd="/usr/bin/su -m zabbix -c /usr/local/sbin/zabbix_java/startup.sh" >+status_cmd="zabbix_java_status" >+stop_cmd="/usr/bin/su -m zabbix -c /usr/local/sbin/zabbix_java/shutdown.sh" >+start_precmd="zabbix_java_init" >+extra_commands="status" >+ >+zabbix_java_init() >+{ >+ touch ${PID_FILE} >+} >+ >+zabbix_java_status() >+{ >+ if [ -e "${PID_FILE}" ]; then >+ PID=`cat ${PID_FILE}` >+ if [ -z ${PID} ]; then >+ echo "${name} is not running" >+ else >+ ps -p ${PID} > /dev/null >+ if [ $? -eq 0 ]; then >+ echo "${name} is running as pid ${PID}" >+ else >+ echo "${name} is not running" >+ fi >+ fi >+ else >+ echo "${name} is not running" >+ fi >+} > > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240139
:
206945
| 206992