-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for issue #30 - Add support for Ubuntu 15.04 (systemd).
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,11 +210,15 @@ class Recipe | |
reload: true | ||
} | ||
service_provider = ::Chef::Provider::Service::Upstart | ||
|
||
# Ubuntu moved to systemd | ||
service_provider = ::Chef::Provider::Service::Systemd if node['platform_version'] >= '15.04' | ||
end | ||
|
||
service service_name do | ||
supports service_supports | ||
provider service_provider | ||
not_if { service_provider == ::Chef::Provider::Service::Systemd } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
flaccid
Author
Contributor
|
||
action :nothing | ||
end | ||
end | ||
|
How come the not_if is needed?