Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr not reading cores from correct path, solr < 5 #56

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions templates/solr.unit.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ Description=Apache SOLR
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
PIDFile={{ solr_install_path }}/bin/solr-{{ solr_port }}.pid
ExecStart={{ solr_install_path }}/bin/solr -e cloud -noprompt
RemainAfterExit=yes
Type=oneshot
User=solr
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
ExecStart=/etc/init.d/solr start
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One problem is I don't think I can guarantee the sysvinit files would always be available on systemd systems. For Solr 6 (and 5, I think, too), the solr -e cloud -noprompt is the correct way to start the service...

ExecReload=/etc/init.d/solr restart
ExecStop=/etc/init.d/solr stop

[Install]
WantedBy=multi-user.target