Skip to content

Commit

Permalink
add systemd example
Browse files Browse the repository at this point in the history
  • Loading branch information
iamseth committed Sep 17, 2017
1 parent 2e5d85c commit 576e28e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/systemd/sphinx_exporter.service
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions examples/systemd/sysconfig.sphinx_exporter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OPTIONS="-sphinx.host localhost -sphinx.port 9312"

0 comments on commit 576e28e

Please sign in to comment.