Class: Ansible::Ruby::Modules::Svc
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Svc
- Defined in:
- lib/ansible/ruby/modules/generated/extras/system/svc.rb
Instance Method Summary collapse
-
#downed ⇒ Boolean?
Should a ‘down’ file exist or not, if it exists it disables auto startup.
-
#enabled ⇒ :yes, ...
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 ⇒ :started, ...
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, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#downed ⇒ Boolean?
Returns Should a ‘down’ file exist or not, if it exists it disables auto startup. defaults to no. Downed does not imply stopped.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 18 attribute :downed |
#enabled ⇒ :yes, ...
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).
22 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 22 attribute :enabled |
#name ⇒ String
Returns Name of the service to manage.
10 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 10 attribute :name |
#service_dir ⇒ String?
Returns directory svscan watches for services.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 26 attribute :service_dir |
#service_src ⇒ Object?
Returns directory where services are defined, the source of symlinks to service_dir.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 30 attribute :service_src |
#state ⇒ :started, ...
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.
14 |
# File 'lib/ansible/ruby/modules/generated/extras/system/svc.rb', line 14 attribute :state |