Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002647 [Resin] major always 05-02-08 15:20 05-22-08 22:17
Reporter wirah View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.5
Summary 0002647: contrib/init.resin.in does fails due to unquoted commands
Description When I run the provided init script on Ubuntu Server 6.06 LTS, the server does not start and the script freezes because the interpreter reads the command:

su ant -c /usr/lib/jvm/java-6-sun/bin/java -jar /opt/resin/lib/resin.jar -resin-home /opt/resin start

as passing '-jar' to the su command. If I modify it as follows:

su ant -c "/usr/lib/jvm/java-6-sun/bin/java -jar /opt/resin/lib/resin.jar -resin-home /opt/resin start"

Then it works fine. The init script needs to be modified as I can imagine this happenning on a lot of systems.
Additional Information
Attached Files

- Relationships

- Notes
(0003033)
wirah
05-02-08 16:10

Thought i'd post my script fix as I got it wrong above:

In the start) and stop) stanzas:

su ant -c "... "

should be:

su ant -c """... """

As one set of quotes is ignored, two sets break it, and three mean the command is sent to the shell, quoted.
 

- Issue History
Date Modified Username Field Change
05-02-08 15:20 wirah New Issue
05-02-08 16:10 wirah Note Added: 0003033
05-22-08 22:17 ferg Assigned To  => ferg
05-22-08 22:17 ferg Status new => closed
05-22-08 22:17 ferg Resolution open => fixed
05-22-08 22:17 ferg Fixed in Version  => 3.2.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker