Commit Graph

35 Commits (459af0a7c56fc6a1582bac96acec946ed4f70445)

Author SHA1 Message Date
Michael DeHaan beae21dd40 Remove examples of module antipattern of setting the choices array for boolean types. 11 years ago
Michael DeHaan c405a61505 Merge pull request #4336 from orkaa/devel
Fixes service update-rc.d functionality on debian
11 years ago
Martijn Lina 3d16b75096 replace dashes in rc.conf keys (which are based on freebsd rc.d filenames) to underscores 11 years ago
Nace Oroz 1f39663a97 Fixes service update-rc.d functionality on debian 11 years ago
cdigiovanni 6720d0cf70 Added support to disable and enable upstart jobs 11 years ago
James Cammarata 3511687dad Minor tweak to service changed logic from the previous commit 11 years ago
James Cammarata 8bdb95a014 Merge branch 'service-enable-fix' of https://github.com/gottwald/ansible into gottwald-service-enable-fix 11 years ago
Petr Svoboda f82d3f7fa9 Fix traceback in service module when svc_cmd is None (2nd fix)
When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

This extends fix from e2f20db534 also
for state=restarted.

Fixes issue #3533
11 years ago
Ingo Gottwald 08af5f833f Bugfix service module: Only change service state when needed 11 years ago
James Cammarata 0449470f21 Allow service module to manage services not ending in .service
Fixes #3417
11 years ago
James Cammarata 5fe192e5e7 Fixes to the service module for Ubuntu 12.04 (LTS)
Fixes #3615
Fixes #3572
11 years ago
James Cammarata 5e8918cb2c Check for systemd ownership of a service even if an init.d script exists
Also slight modification to the error message in the earlier commit that
modified the update-rc.d detection portion of the code

Fixes #3474
11 years ago
James Cammarata ef02c6107a Minor fix to account for template service names in systemctl 11 years ago
James Cammarata f22ffab259 Fix for update-rc.d based systems that also have systemd installed
By default, the service module had assumed that if the system had the
update-rc.d binary, the service was either managed via upstart or standard
sysV init-style scripts. This patch adds a check for systemctl ahead
of the other methods when update-rc.d is detected, and also simplifies
the logic around the detection of systemctl-managed services
11 years ago
James Cammarata 17f683aad7 Added 'reloaded' state to list of states checked for bounced services
Fixes #3556
11 years ago
Petr Svoboda 48b064b55b Fix traceback in service module when svc_cmd is None
When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

Fixes issue #3533
11 years ago
Michael DeHaan b22428d87e Merge pull request #3426 from trbs/services_sleep_option
sleep option for service module which adds a pauze between stopping and ...
12 years ago
Brian Coca e0e50b5936 fixed check mode
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
trbs 0d8da6eeb0 sleep option for service module which adds a pauze between stopping and starting a service using state=restarted. This helps for bad scripts that exist immediatly after signaling a process to stop. 12 years ago
Antti Rasinen c2a4645349 Fix service enable on FreeBSD
Some services have a knob (i.e. rc.conf setting) whose name
differs from that of the script. For example, lockd process
is controlled with a script called lockd, but the rc.conf
value is rpc_lockd_enable.

Fixes issue #3382.
12 years ago
martin f. krafft 3b7b061b07 Expand usage of Python 2.6 if statement
Syntax like "'foo' if bar else 'baz'" is not supported by all Python
versions targetted by Ansible. Hence we break it up.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft 22b30b9281 Let update-rc.d set changed flag properly
When update-rc.d is used to enable/disable service, the changed flag was
always true (see #2189). This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Michael DeHaan 997bf64f3f Fix up some module docs formatting errors. 12 years ago
Michael DeHaan e4f3c4e286 Clarify module docs 12 years ago
Michael DeHaan f53bc323a5 Merge pull request #3230 from sayap/openrc
Add OpenRC support to the service module.
12 years ago
Yap Sok Ann ec265a98e0 Add OpenRC support to the service module. 12 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
Michael DeHaan e6620cdb9a Refine error message. 12 years ago
Michael DeHaan da1738723a Merge branch 'rc.d-systemd' of git://github.com/glensc/ansible into sysd 12 years ago
Scott Sturdivant 0110b616cb Fixes #2991: Service module pattern argument ignored. 12 years ago
Elan Ruusamäe 52643e2a4d no need to init None to None 12 years ago
Elan Ruusamäe 258cf60924 LinuxService: avoid enforcing systemd even if init.d script was found 12 years ago
madema 57fb97470c Update service 12 years ago
madema 88a4a56889 Added AIX class in the service module to control AIX SRC processes. 12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago