2021-04-21 20:26:49 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Apache SOLR
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=solr
|
|
|
|
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
|
2021-04-26 07:40:27 +00:00
|
|
|
#ReadWritePaths=/var/lib/solr/
|
|
|
|
#ReadWritePaths=/var/lib/solr/data/
|
2021-04-21 20:26:49 +00:00
|
|
|
LimitNOFILE=65000
|
|
|
|
LimitNPROC=65000
|
|
|
|
TimeoutSec=180s
|
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|