From 576e28ee574ce565224cae311394aece0b70b8ba Mon Sep 17 00:00:00 2001 From: Seth Miller Date: Sat, 16 Sep 2017 20:45:16 -0500 Subject: [PATCH] add systemd example --- examples/systemd/sphinx_exporter.service | 10 ++++++++++ examples/systemd/sysconfig.sphinx_exporter | 1 + 2 files changed, 11 insertions(+) create mode 100644 examples/systemd/sphinx_exporter.service create mode 100644 examples/systemd/sysconfig.sphinx_exporter diff --git a/examples/systemd/sphinx_exporter.service b/examples/systemd/sphinx_exporter.service new file mode 100644 index 0000000..8f4a063 --- /dev/null +++ b/examples/systemd/sphinx_exporter.service @@ -0,0 +1,10 @@ +[Unit] +Description=Sphinx Exporter + +[Service] +User=sphinx_exporter +EnvironmentFile=/etc/sysconfig/sphinx_exporter +ExecStart=/usr/sbin/sphinx_exporter $OPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/examples/systemd/sysconfig.sphinx_exporter b/examples/systemd/sysconfig.sphinx_exporter new file mode 100644 index 0000000..6f3c9ec --- /dev/null +++ b/examples/systemd/sysconfig.sphinx_exporter @@ -0,0 +1 @@ +OPTIONS="-sphinx.host localhost -sphinx.port 9312"