summarylogtreecommitdiffstats
path: root/sphinx.service
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx.service')
-rw-r--r--sphinx.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/sphinx.service b/sphinx.service
new file mode 100644
index 00000000000..a0997ccb267
--- /dev/null
+++ b/sphinx.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Sphinx - SQL Full Text Search Engine
+After=local-fs.target network.target mysqld.service
+
+[Service]
+Type=forking
+Restart=always
+PIDFile=/var/run/sphinx/searchd.pid
+ExecStart=/bin/sh -c '/usr/bin/mkdir -p /var/run/sphinx && /usr/bin/sphinx-searchd --config /etc/sphinx/sphinx.conf'
+ExecStop=/usr/bin/sphinx-searchd --config /etc/sphinx/sphinx.conf --stopwait
+
+[Install]
+WantedBy=multi-user.target