Add command argument string splitting

launchd uses exec() under the hood when you specify ProgramArguments
or Program so you must break apart program arguments into separate
strings in an array or the command will fail
This commit is contained in:
Aaron Kalin committed 2012-09-10 19:10:47 -05:00
1 parent c617ddb3b2
commit 698e6ae092
4 files changed
+42 -1

No files matched your search

+3 -1
View File
@@ -13,7 +13,9 @@
</dict>
<key>ProgramArguments</key>
<array>
<string><%= process.command %></string>
<%- command_args.each do |command| -%>
<string><%= command %></string>
<%- end -%>
</array>
<key>KeepAlive</key>
<true/>