From a27aa878ff90cf6f6663bebb8c6622f14917fe15 Mon Sep 17 00:00:00 2001 From: Martijn van Maurik Date: Wed, 15 Nov 2017 13:44:33 +0100 Subject: [PATCH 1/2] Add systemd configuration --- etc-deb/systemd/vmbixd.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc-deb/systemd/vmbixd.service diff --git a/etc-deb/systemd/vmbixd.service b/etc-deb/systemd/vmbixd.service new file mode 100644 index 0000000..48d3536 --- /dev/null +++ b/etc-deb/systemd/vmbixd.service @@ -0,0 +1,17 @@ +[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 From 44809d969b1793df1f8605192e784def8f04dfb5 Mon Sep 17 00:00:00 2001 From: Martijn van Maurik Date: Wed, 15 Nov 2017 13:48:55 +0100 Subject: [PATCH 2/2] Fix path --- etc-deb/systemd/{ => system}/vmbixd.service | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename etc-deb/systemd/{ => system}/vmbixd.service (100%) diff --git a/etc-deb/systemd/vmbixd.service b/etc-deb/systemd/system/vmbixd.service similarity index 100% rename from etc-deb/systemd/vmbixd.service rename to etc-deb/systemd/system/vmbixd.service