mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-26 07:57:05 +00:00
22 lines
443 B
SYSTEMD
22 lines
443 B
SYSTEMD
|
[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
|