Changeset 29377

Show
Ignore:
Timestamp:
17.10.2014 16:29:16 (5 years ago)
Author:
ak19
Message:

Redirecting stderr and stdout to a logfile with the same name as the app file and located in gsdl3srchome/web/logs, if writable, or otherwise in /tmp.

Location:
main/trunk/greenstone3
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/client-gli.app/Contents/document.wflow.in

    r27387 r29377  
    5656                <dict> 
    5757                    <key>COMMAND_STRING</key> 
    58                     <string>@gsdl3srchome@/gli/client-gli.sh</string> 
     58                    <string>logdir=/tmp 
     59if test -w @gsdl3srchome@/web/logs; then 
     60  logdir=@gsdl3srchome@/web/logs 
     61fi 
     62exec 2&gt;$logdir/client-gli.output 
     63&gt;&amp;2 echo "GSDL3SRCHOME is |@gsdl3srchome@|" 
     64printenv 1&gt;&amp;2 
     65@gsdl3srchome@/gli/client-gli.sh</string> 
    5966                    <key>CheckedForUserDefaultShell</key> 
    6067                    <true/> 
  • main/trunk/greenstone3/gems.app/Contents/document.wflow.in

    r27387 r29377  
    5656                <dict> 
    5757                    <key>COMMAND_STRING</key> 
    58                     <string>@gsdl3srchome@/gli/gems.sh</string> 
     58                    <string>logdir=/tmp 
     59if test -w @gsdl3srchome@/web/logs; then 
     60  logdir=@gsdl3srchome@/web/logs 
     61fi 
     62exec 2&gt;$logdir/gems.output 
     63&gt;&amp;2 echo "GSDL3SRCHOME is |@gsdl3srchome@|" 
     64printenv 1&gt;&amp;2 
     65@gsdl3srchome@/gli/gems.sh</string> 
    5966                    <key>CheckedForUserDefaultShell</key> 
    6067                    <true/> 
  • main/trunk/greenstone3/gli.app/Contents/document.wflow.in

    r27388 r29377  
    5656                <dict> 
    5757                    <key>COMMAND_STRING</key> 
    58                     <string>@gsdl3srchome@/gli/gli.sh</string> 
     58                    <string>logdir=/tmp 
     59if test -w @gsdl3srchome@/web/logs; then 
     60  logdir=@gsdl3srchome@/web/logs 
     61fi 
     62exec 2&gt;$logdir/gli.output 
     63&gt;&amp;2 echo "GSDL3SRCHOME is |@gsdl3srchome@|" 
     64printenv 1&gt;&amp;2 
     65@gsdl3srchome@/gli/gli.sh</string> 
    5966                    <key>CheckedForUserDefaultShell</key> 
    6067                    <true/> 
  • main/trunk/greenstone3/gs3-server.app/Contents/document.wflow.in

    r27387 r29377  
    5656                <dict> 
    5757                    <key>COMMAND_STRING</key> 
    58                     <string>@gsdl3srchome@/gs3-server.sh</string> 
     58                    <string>logdir=/tmp 
     59if test -w @gsdl3srchome@/web/logs; then 
     60  logdir=@gsdl3srchome@/web/logs 
     61fi 
     62exec 2&gt;$logdir/gs3-server.output 
     63&gt;&amp;2 echo "GSDL3SRCHOME is |@gsdl3srchome@|" 
     64printenv 1&gt;&amp;2 
     65@gsdl3srchome@/gs3-server.sh</string> 
    5966                    <key>CheckedForUserDefaultShell</key> 
    6067                    <true/>