Class: Ansible::Ruby::Modules::Svc
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Svc
- Defined in:
- lib/ansible/ruby/modules/generated/system/svc.rb
Overview
Controls daemontools services on remote hosts using the svc utility.
Instance Method Summary collapse
-
#downed ⇒ :yes, ...
Should a ‘down’ file exist or not, if it exists it disables auto startup.
-
#enabled ⇒ Symbol?
Wheater the service is enabled or not, if disabled it also implies stopped.
-
#name ⇒ String
Name of the service to manage.
-
#service_dir ⇒ String?
Directory svscan watches for services.
-
#service_src ⇒ Object?
Directory where services are defined, the source of symlinks to service_dir.
-
#state ⇒ :killed, ...
C(Started)/C(stopped) are idempotent actions that will not run commands unless necessary.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#downed ⇒ :yes, ...
Returns Should a ‘down’ file exist or not, if it exists it disables auto startup. defaults to no. Downed does not imply stopped.
20 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 20 attribute :downed |
#enabled ⇒ Symbol?
Returns Wheater the service is enabled or not, if disabled it also implies stopped. Make note that a service can be enabled and downed (no auto restart).
24 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 24 attribute :enabled |
#name ⇒ String
Returns Name of the service to manage.
12 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 12 attribute :name |
#service_dir ⇒ String?
Returns directory svscan watches for services.
28 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 28 attribute :service_dir |
#service_src ⇒ Object?
Returns directory where services are defined, the source of symlinks to service_dir.
32 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 32 attribute :service_src |
#state ⇒ :killed, ...
Returns C(Started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the svc (svc -t) and C(killed) will always bounce the svc (svc -k). C(reloaded) will send a sigusr1 (svc -1). C(once) will run a normally downed svc once (svc -o), not really an idempotent operation.
16 |
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 16 attribute :state |