vmbix
vmbix copied to clipboard
systemd unit file
I have created an vmbixd service unit file, maybe you want the configuration and adjust it to your own needs + package it into the debian repo?
[Unit]
Description=vmbixd
After=network.target
Before=zabbix-server.service
[Service]
ExecStart=/usr/bin/java -Dlogback.configurationFile=/etc/vmbix/logback.xml -jar /usr/local/vmbix/vmbix.jar -c /etc/vmbix/vmbix.conf -f /var/run/zabbix/vmbix.pid
Type=simple
User=zabbix
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
PIDFile=/var/run/zabbix/vmbix.pid
[Install]
WantedBy=multi-user.target
Also see the SuccessExitStatus=143 --> https://support.zabbix.com/browse/ZBX-11041
Thank you. Would you kindly make a PR for this ?
I will after the weekend 😉
Note: I saw the init.d file uses root to run Java, is there any reason for that? Below 1024 are privileged ports, so there seem to be no reason for it?
Done