Skip to content
Browse files

Fixed _service_is_sysv

  • Loading branch information...
1 parent ce4b157 commit 0c95be28366adcff94bef94fc4889663bff53185 @mitsuhiko committed Aug 30, 2012
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):

0 comments on commit 0c95be2

Please sign in to comment.
Something went wrong with that request. Please try again.