Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Run Pow directly from launchd
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Nov 14, 2011
1 parent e2247d7 commit af3c0bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/templates/installer/cx.pow.powd.plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ module.exports = function(__obj) {
return _safe(result);
};

_print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>Label</key>\n\t<string>cx.pow.powd</string>\n\t<key>ProgramArguments</key>\n\t<array>\n\t\t<string>sh</string>\n\t\t<string>-i</string>\n\t\t<string>-c</string>\n\t\t<string>$SHELL --login -c "\''));
_print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>Label</key>\n\t<string>cx.pow.powd</string>\n\t<key>ProgramArguments</key>\n\t<array>\n <string>'));

_print(this.bin);

_print(_safe('\'"</string>\n\t</array>\n\t<key>KeepAlive</key>\n\t<true/>\n\t<key>RunAtLoad</key>\n\t<true/>\n</dict>\n</plist>\n'));
_print(_safe('</string>\n\t</array>\n\t<key>KeepAlive</key>\n\t<true/>\n\t<key>RunAtLoad</key>\n\t<true/>\n</dict>\n</plist>\n'));

return __out.join('');
}).call((function() {
Expand Down
5 changes: 1 addition & 4 deletions src/templates/installer/cx.pow.powd.plist.eco
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
<string>cx.pow.powd</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-i</string>
<string>-c</string>
<string>$SHELL --login -c "'<%= @bin %>'"</string>
<string><%= @bin %></string>
</array>
<key>KeepAlive</key>
<true/>
Expand Down

0 comments on commit af3c0bc

Please sign in to comment.