Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.8.16, 0.9.0, 0.9.2, 0.9.4, 0.9.6, 0.9.8, 0.9.10, 0.9.12, 0.9.14
-
Fix Version/s: 0.10.4
-
Component/s: Chef Client
-
Labels:None
-
Environment:
Ubuntu maverick/lucid/karmic
Description
Upstart provider will run "restart servicename" for the restart action. However, if the service is not running yet upstart will return "restart: Unknown instance:"
Activity
Avishai Ish-Shalom
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 0.9.14 [ 10083 ] | |
| Affects Version/s | 0.9.12 [ 10082 ] | |
| Affects Version/s | 0.9.10 [ 10080 ] | |
| Affects Version/s | 0.9.8 [ 10079 ] | |
| Affects Version/s | 0.9.6 [ 10078 ] | |
| Affects Version/s | 0.9.4 [ 10077 ] | |
| Affects Version/s | 0.9.2 [ 10075 ] | |
| Affects Version/s | 0.9.0 [ 10061 ] | |
| Environment | Ubuntu lucid/karmic | Ubuntu maverick/lucid/karmic |
| Priority | Minor [ 4 ] | Major [ 3 ] |
Avishai Ish-Shalom
made changes -
| Assignee | Avishai Ish-Shalom [ avishai ] |
Avishai Ish-Shalom
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Avishai Ish-Shalom [ avishai ] | Daniel DeLeo [ dan@kallistec.com ] |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Triage Status | [Triaged] |
Bryan McLellan [Opscode]
made changes -
| Fix Version/s | 0.10.2 [ 10203 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Assignee | Daniel DeLeo [ dan@kallistec.com ] |
Bryan McLellan [Opscode]
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Bryan McLellan [Opscode]
made changes -
| Fix Version/s | 0.10.4 [ 10400 ] | |
| Fix Version/s | 0.10.2 [ 10203 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 12002 ] | New OSS [ 19448 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 19448 ] | OSS: Product Management [ 27357 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
262d 18h 2m | 1 | Avishai Ish-Shalom | 26/Mar/11 9:45 AM | |||||
|
67d 13h 4m | 1 | Bryan McLellan [Opscode] | 01/Jun/11 10:49 PM | |||||
|
35d 19h 11m | 1 | Bryan McLellan [Opscode] | 07/Jul/11 6:00 PM | |||||
|
3m 46s | 1 | Bryan McLellan [Opscode] | 07/Jul/11 6:04 PM |
In fact, I think the "restart: command should never be used. It is NOT the same as stop/start because Upstart doesn't re-read the config file on restart. So if your "/etc/init/cmd.conf" does a :notifies :restart => "service[:xxx]", it won't use your changes.
I've been doing this for safety:
service "xxx" do provider Chef::Provider::Service::Upstart action :start # Always best to do a clean restart: # the normal 'restart foo' command will NOT re-read /etc/init/cmd.conf # Also, restart won't start. restart_command "stop #{xxx} && start #{xxx}" end