Created
September 18, 2014 16:09
-
-
Save UtahDave/ec8dcefed5756530c863 to your computer and use it in GitHub Desktop.
Example of a Salt execution module that "fires and forgets" a command that may not ever return correctly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import Popen | |
def start_server(): | |
cmd_str = 'coffee /tmp/app/app.coffee' | |
proc = Popen([cmd_str], shell=True, | |
stdin=None, stdout=None, stderr=None, close_fds=True) | |
return cmd_str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment