Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd unit file #50

Open
combro2k opened this issue Nov 7, 2017 · 5 comments
Open

systemd unit file #50

combro2k opened this issue Nov 7, 2017 · 5 comments

Comments

@combro2k
Copy link

combro2k commented Nov 7, 2017

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
Copy link
Author

combro2k commented Nov 7, 2017

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

@dav3860
Copy link
Owner

dav3860 commented Nov 10, 2017

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

@combro2k
Copy link
Author

I will after the weekend 😉

@combro2k
Copy link
Author

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
Copy link
Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants