vmbix icon indicating copy to clipboard operation
vmbix copied to clipboard

systemd unit file

Open combro2k opened this issue 8 years ago • 5 comments

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

combro2k avatar Nov 07 '17 10:11 combro2k

Also see the SuccessExitStatus=143 --> https://support.zabbix.com/browse/ZBX-11041

combro2k avatar Nov 07 '17 10:11 combro2k

Thank you. Would you kindly make a PR for this ?

dav3860 avatar Nov 10 '17 13:11 dav3860

I will after the weekend 😉

combro2k avatar Nov 10 '17 17:11 combro2k

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?

combro2k avatar Nov 10 '17 18:11 combro2k

Done

combro2k avatar Nov 15 '17 12:11 combro2k