ansible/system
David Wittman 8d53ef2f60 [service] Fix bug with upstart detection
Upstart scripts are being incorrectly identified as SysV init scripts
due to a logic error in the `service` module.

Because upstart uses multiple commands (`/sbin/start`, `/sbin/stop`,
etc.) for managing service state, the codepath for upstart sets
`self.svc_cmd` to an empty string on line 451.

Empty strings are considered a non-truthy value in Python, so
conditionals which are checking the state of `self.svc_cmd` should
explicitly compare it to `None` to avoid overlooking the fact that
the service may be controlled by an upstart script.
2015-03-25 17:37:18 -05:00
..
__init__.py package files 2014-09-26 11:05:47 -04:00
authorized_key.py Fix authorized_key module crashing when given an invalid key 2015-03-23 11:51:49 +00:00
cron.py Update cron example for setting to run twice a day 2014-12-02 14:38:32 -08:00
group.py Add basic support for OSX groups. 2015-02-13 10:14:37 +01:00
hostname.py Add Linuxmint support in hostname module 2015-02-06 21:29:25 +01:00
mount.py Setting the actual passno and dump defaults, and warning user of consequences in nulling 2015-03-11 21:36:44 -04:00
ping.py file extensions! 2014-09-26 10:37:56 -04:00
seboolean.py file extensions! 2014-09-26 10:37:56 -04:00
selinux.py Set selinux state to 'permissive' for state=disabled 2014-09-30 00:33:55 +02:00
service.py [service] Fix bug with upstart detection 2015-03-25 17:37:18 -05:00
setup.py file extensions! 2014-09-26 10:37:56 -04:00
sysctl.py now handles non string values for sysctl 2015-01-19 19:37:57 -05:00
user.py Added HP-UX subclass 2015-02-27 18:32:36 +01:00