Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed _service_is_sysv

  • Loading branch information...
commit 0c95be28366adcff94bef94fc4889663bff53185 1 parent ce4b157
@mitsuhiko authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 salt/modules/upstart.py
View
4 salt/modules/upstart.py
@@ -100,9 +100,7 @@ def _service_is_sysv(name):
executable, like README or skeleton.
'''
script = '/etc/init.d/{0}'.format(name)
- if not _is_symlink(script):
- return os.access(script, os.X_OK)
- return False
+ return not _service_is_upstart(name) and os.access(script, os.X_OK)
def _sysv_is_disabled(name):
Please sign in to comment.
Something went wrong with that request. Please try again.