dav3860 / vmbix

Fork of vmbix, a TCP proxy for querying a VMWare infrastucture with Zabbix
53 stars 19 forks source link

systemd unit file #50

Open combro2k opened 6 years ago

combro2k commented 6 years ago

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 commented 6 years ago

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

dav3860 commented 6 years ago

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

combro2k commented 6 years ago

I will after the weekend 😉

combro2k commented 6 years ago

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 commented 6 years ago

Done