Permalink
Browse files

Add node path to powd script

  • Loading branch information...
1 parent b53ad40 commit d922567bcebc3743eb85aa4c87d123eae3506a3c @josh josh committed Nov 14, 2011
Showing with 17 additions and 12 deletions.
  1. +6 −2 lib/templates/installer/cx.pow.powd.plist.js
  2. +11 −10 src/templates/installer/cx.pow.powd.plist.eco
@@ -19,11 +19,15 @@ 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 <string>'));
+ _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 <key>Label</key>\n <string>cx.pow.powd</string>\n <key>ProgramArguments</key>\n <array>\n <string>'));
+
+ _print(process.execPath);
+
+ _print(_safe('</string>\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 </array>\n <key>KeepAlive</key>\n <true/>\n <key>RunAtLoad</key>\n <true/>\n</dict>\n</plist>\n'));
return __out.join('');
}).call((function() {
@@ -2,15 +2,16 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>Label</key>
- <string>cx.pow.powd</string>
- <key>ProgramArguments</key>
- <array>
- <string><%= @bin %></string>
- </array>
- <key>KeepAlive</key>
- <true/>
- <key>RunAtLoad</key>
- <true/>
+ <key>Label</key>
+ <string>cx.pow.powd</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string><%= process.execPath %></string>
+ <string><%= @bin %></string>
+ </array>
+ <key>KeepAlive</key>
+ <true/>
+ <key>RunAtLoad</key>
+ <true/>
</dict>
</plist>

0 comments on commit d922567

Please sign in to comment.