summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorNathan Williams <nathan@teamtreehouse.com>2016-05-06 14:37:46 -0700
committerNathan Williams <nathan@teamtreehouse.com>2016-05-06 15:14:17 -0700
commitd8b3f05774613c949c8ed33a48122a27b2cd053a (patch)
tree8ccd2b6eb8ddaacb86e56baf2fe4c463c2b783ce /lib/chef/resource
parent3a982b8becf9b06a8e9ed772bb0e3912a5056254 (diff)
downloadchef-d8b3f05774613c949c8ed33a48122a27b2cd053a.tar.gz
add more unit actions
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/systemd_unit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/resource/systemd_unit.rb b/lib/chef/resource/systemd_unit.rb
index 525e9ab35e..688f2e9dcd 100644
--- a/lib/chef/resource/systemd_unit.rb
+++ b/lib/chef/resource/systemd_unit.rb
@@ -29,7 +29,9 @@ class Chef
:enable, :disable,
:mask, :unmask,
:start, :stop,
- :restart, :reload
+ :restart, :reload,
+ :try_restart, :reload_or_restart,
+ :reload_or_try_restart
property :enabled, [TrueClass, FalseClass]
property :active, [TrueClass, FalseClass]