/lib/systemd/system/zabbix-java-gateway.service is in zabbix-java-gateway 1:3.0.12+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | [Unit]
Description=Zabbix Java Gateway
After=network.target
[Service]
Type=simple
Environment=PID_FILE=/var/run/zabbix/zabbix-java-gateway.pid
Environment=LISTEN_IP=0.0.0.0
Environment=LISTEN_PORT=10052
Environment=START_POLLERS=5
Environment=TIMEOUT=3
Environment=JAVA_OPTIONS=-Xmx256m
EnvironmentFile=/etc/zabbix/zabbix_java_gateway.conf
ExecStart=/usr/bin/java ${JAVA_OPTIONS} -server \
-Dzabbix.pidFile=${PID_FILE} \
-Dzabbix.listenIP=${LISTEN_IP} \
-Dzabbix.listenPort=${LISTEN_PORT} \
-Dzabbix.startPollers=${START_POLLERS} \
-Dzabbix.timeout=${TIMEOUT} -Dsun.rmi.transport.tcp.responseTimeout=${TIMEOUT}000 \
-Dlogback.configurationFile=/etc/zabbix/zabbix_java_gateway.logback.xml \
-Djava.library.path=/usr/lib/jni \
-jar /usr/sbin/zabbix-java-gateway.jar
PIDFile=/var/run/zabbix/zabbix_java-gateway.pid
User=zabbix
Group=zabbix
Restart=on-abort
[Install]
WantedBy=multi-user.target
|