mailinabox/conf/solr/solr.service

22 lines
443 B
SYSTEMD
Raw Normal View History

2021-04-21 20:26:49 +00:00
[Unit]
Description=Apache SOLR
After=network.target
[Service]
Type=forking
User=solr
PIDFile=/var/run/solr-8983.pid
Environment=SOLR_INCLUDE=/etc/default/solr.in.sh
ExecStart=/usr/local/lib/solr/bin/solr start
ExecStop=/usr/local/lib/solr/bin/solr stop
Restart=on-failure
ReadWritePaths=/var/lib/solr/
ReadWritePaths=/var/lib/solr/data/
LimitNOFILE=65000
LimitNPROC=65000
TimeoutSec=180s
PrivateTmp=true
[Install]
WantedBy=multi-user.target