Class: PoolParty::Plugin::PoolPartyBaseRunit
- Inherits:
-
PoolParty::Plugin
- Object
- PoolParty::Plugin
- PoolParty::Plugin::PoolPartyBaseRunit
- Defined in:
- lib/poolparty/plugins/runit.rb
Instance Method Summary collapse
Methods included from PoolParty::Plugin
Instance Method Details
#enable ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/poolparty/plugins/runit.rb', line 9 def enable unless enabled has_file(:name => "inittab", :path => "/etc/inittab", :mode => 0644, :owner => "root", :group => "root") has_package(:name => "runit", :ensures => "latest", :requires => get_file("inittab")) has_exec(:name => "/sbin/start runsvdir", :cwd => "/var/service") # has_remotefile(:name => "/etc/event.d/runsvdir", :notify => get_exec("/sbin/start runsvdir")) enabled true end end |