Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.16, 0.10.0
-
Fix Version/s: 0.10.0
-
Component/s: Chef Server
-
Labels:None
-
Environment:
centos 5.3, run_style=init, all redhat
Description
When using run_style=init, the init script for chef-solr (and I think the other daemons) does not use the -P option to start chef-solr. As a result, chef-solr defaults to using /tmp/chef-solr.pid instead of the pidfile specified in /etc/sysconfig/chef-solr or the default in /etc/init.d/chef-solr. Because of this service chef-solr stop/restart fails.
The fix is to add -P "$pidfile" in /etc/init.d/chef-solr in the start() function right before the "$options":
daemon $prog -d -c "$config" -u "$user" -g "$group" -L "$logfile" -P "$pidfile" "&>/dev/null"
Note too that you'll have to chown /var/run/chef to be owned by chef:chef.
Issue Links
- is duplicated by
-
CHEF-1837
chef-solr init scripts
-
Activity
Matthew Kent
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Matthew Kent [ mkent ] |
Matthew Kent
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Duplicate [ 3 ] |
KC Braunschweig
made changes -
| Resolution | Duplicate [ 3 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
KC Braunschweig
made changes -
| Affects Version/s | 0.10.0 [ 10081 ] | |
| Environment | centos 5.3, run_style=init | centos 5.3, run_style=init, all redhat |
Matthew Kent
made changes -
| Affects Version/s | 0.9.16 [ 10090 ] | |
| Affects Version/s | 0.8.8 [ 10054 ] |
Matthew Kent
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Assignee | Matthew Kent [ mkent ] | Daniel DeLeo [ dan@kallistec.com ] |
| Fix Version/s | 0.9.18 [ 10201 ] | |
| Fix Version/s | 0.10.0 [ 10081 ] | |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Triage Status | [Triaged] |
Bryan McLellan [Opscode]
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Bryan McLellan [Opscode]
made changes -
| Comment | [ We should have chef-solr-installer modify these settings so we're not maintaining local changes to upstream solr that we drop (which wouldn't work on Debian anyway). ] |
Bryan McLellan [Opscode]
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Bryan McLellan [Opscode]
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Fix Version/s | 0.9.20 [ 10401 ] | |
| Fix Version/s | 0.9.18 [ 10201 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
Daniel DeLeo
made changes -
| Fix Version/s | 0.9.20 [ 10401 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 11577 ] | New OSS [ 19165 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 19165 ] | OSS: Product Management [ 27074 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
20d 14h 4m | 1 | Matthew Kent | 19/Apr/10 4:03 AM | |||||
|
11d 22h 41m | 1 | Bryan McLellan [Opscode] | 03/May/11 5:20 PM | |||||
|
1d 20h 41m | 2 | Bryan McLellan [Opscode] | 03/May/11 5:20 PM | |||||
|
148d 19h 17m | 1 | Bryan McLellan [Opscode] | 29/Sep/11 12:38 PM | |||||
|
365d 18h 28m | 2 | Bryan McLellan [Opscode] | 29/Sep/11 1:12 PM | |||||
|
5s | 1 | Bryan McLellan [Opscode] | 29/Sep/11 1:12 PM |
Also need to add -p "$pidfile" to call to killproc in stop() function:
killproc -p "$pidfile" $prog