Skip to content

Instantly share code, notes, and snippets.

@stooj
Created June 8, 2016 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stooj/51fbb457756fc1d592af2c0494c04838 to your computer and use it in GitHub Desktop.
Save stooj/51fbb457756fc1d592af2c0494c04838 to your computer and use it in GitHub Desktop.
/etc/init.d/myservice:
file.managed:
- source: salt://myservice/files/etc/init.d/myservice
- user: root
- group: root
- mode: 755
myservice:
service.running:
- enable: True
- require:
- file.exists:
- /etc/init.d/myservice
@ahammond
Copy link

ahammond commented Jun 8, 2016

line 12 should be

- file: /etc/init.d/myservice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment