Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Unknown
-
Resolution: Fixed
-
Component/s: chef-client
-
Environment:
Redhat and all variants (CentOS, OEL)
Description
On line 21 of the chef-client init script for redhat variants, the path to chef-client as installed by gems is wrong.
It currently reads:
exec="/usr/bin/chef-client"
The correct path is:
exec="/usr/local/bin/chef-client"
Due to this, the daemon never attempts to start because of the test on line 35:
[ -x $exec ] || exit 5
But even with this corrected, the script still won't work without a few further changes.
Line 38 reads:
daemon chef-client -d -c "$config" -L "$logfile" -P "$pidfile" -i "$interval" -s "$splay" "$options"
This should be:
daemon $exec -d -c "$config" -L "$logfile" -P "$pidfile" -i "$interval" -s "$splay" "$options"
Line 47 reads:
killproc -p $pidfile chef-client
This should be:
killproc -p $pidfile $exec
Issue Links
- is duplicated by
-
COOK-1359
chef-client init script does not invoke "daemon" with full path
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Charles Johnson [ mr_chip ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Project | Chef [ 10000 ] | Chef Cookbooks [ 10010 ] |
| Key | CHEF-2400 |
|
| Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
| Affects Version/s | 0.10.0 [ 10081 ] | |
| Component/s | chef-client [ 10101 ] | |
| Component/s | Chef Client [ 10000 ] |
| Summary | Init script for redhat/centos will not start daemon | Allow configuration of path to chef-client binary in init script |
| Assignee | Charles Johnson [ mr_chip ] |
| Assignee | Seth Chisamore [ schisamo ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Triage Status | [Triaged] |
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Assignee | Seth Chisamore [ schisamo ] | Mike Fiedler [ miketheman ] |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Merge Status | [Merged] |
| Workflow | jira [ 13580 ] | New OSS [ 21136 ] |
| Status | Resolved [ 5 ] | Fix Provided [ 10002 ] |
| Status | Fix Provided [ 10002 ] | Fix Reviewed [ 10000 ] |
| Status | Fix Reviewed [ 10000 ] | Fix Committed [ 10003 ] |
| Status | Fix Committed [ 10003 ] | Closed [ 6 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
2h 13m | 1 | Charles Johnson | 02/Jun/11 9:08 PM | |||||
|
47d 16h 57m | 1 | Seth Chisamore | 20/Jul/11 2:06 PM | |||||
|
267d 4h 33m | 1 | Sean Escriva | 12/Apr/12 6:39 PM | |||||
|
208d 7h 32m | 1 | Mike Fiedler | 07/Nov/12 2:11 AM | |||||
|
1d 16h 40m | 1 | jtimberman | 08/Nov/12 6:52 PM | |||||
|
6m 4s | 1 | jtimberman | 08/Nov/12 6:58 PM | |||||
|
1m 54s | 1 | jtimberman | 08/Nov/12 7:00 PM | |||||
|
11d 4h 20m | 1 | jtimberman | 19/Nov/12 11:20 PM |
Patched in https://github.com/charlesjohnson/chef/tree/4d77b42f6e597070d7cf0dded56f4b078031dd4d