- Created:
- Updated:
XunSearch systemd
xunsearch-indexd.service
[Unit]
Description=XunSearch Indexd Systemd
Documentation=http://blog.fairycat.cn
After=network.target
PartOf=xunsearch.target
[Service]
Type=forking
ExecStart=/usr/local/xunsearch/bin/xs-indexd -l /usr/local/xunsearch/tmp/indexd.log -b 127.0.0.1:8383 -k start
ExecStop=/usr/local/xunsearch/bin/xs-indexd -l /usr/local/xunsearch/tmp/indexd.log -b 127.0.0.1:8383 -k stop
ExecReload=/usr/local/xunsearch/bin/xs-indexd -l /usr/local/xunsearch/tmp/indexd.log -b 127.0.0.1:8383 -k reload
PIDFile=/usr/local/xunsearch/tmp/pid.127_0_0_1_8383
KillMode=control-group
Restart=on-failure
RestartSec=100ms
[Install]
WantedBy=xunsearch.target
xunsearch-searchd.service
[Unit]
Description=XunSearch Searchd Systemd
Documentation=http://blog.fairycat.cn
After=network.target
PartOf=xunsearch.target
[Service]
Type=forking
ExecStart=/usr/local/xunsearch/bin/xs-searchd -l /usr/local/xunsearch/tmp/searchd.log -b 127.0.0.1:8384 -k start
ExecStop=/usr/local/xunsearch/bin/xs-searchd -l /usr/local/xunsearch/tmp/searchd.log -b 127.0.0.1:8384 -k stop
ExecReload=/usr/local/xunsearch/bin/xs-searchd -l /usr/local/xunsearch/tmp/searchd.log -b 127.0.0.1:8384 -k reload
PIDFile=/usr/local/xunsearch/tmp/pid.127_0_0_1_8384
KillMode=control-group
Restart=on-failure
RestartSec=100ms
[Install]
WantedBy=xunsearch.target
xunsearch.target
[Unit]
Description=XunSearch Systemd
Documentation=https://blog.fairycat.cn
[Install]
WantedBy=multi-user.target
xunsearch-.service.d/user.conf
[Service]
User=xunsearch
Group=xunsearch