| Mantis - Resin | |||||
| Viewing Issue Advanced Details | |||||
|  | |||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: | 
| 5022 | minor | always | 04-04-12 14:21 | 06-19-12 16:06 | |
|  | |||||
| Reporter: | rickHigh | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.27 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.29 | ||
|  | |||||
| Summary: | 0005022: EC2 CONFIG: /etc/init.d/resin script start-all does not allow SERVER variable to work so you can't specify a server id | ||||
| Description: | Problem with /etc/init.d/resin script start-all does not allow SERVER variable to work so you can't specify a server id. Problem: this works from the command line: $ sudo resinctl start -server app-2 But modifying /etc/init.d/resin and adding -server app-2 does not. # # Set to the server id to start # SERVER="-server app-2" $ sudo /etc/init.d/resin start Server set to -server app-2 (I added this for debugging) ARGS set to -server app-2 (I added this echo for debugging) Starting resin: . [ec2-user@ip-10-77-69-135 ~]$ sudo resinctl status -server app-2 Resin/4.0.27 can't retrieve status of -server 'app-2' for watchdog at 127.0.0.1:6600. com.caucho.bam.RemoteConnectionFailedException: BamError[type=cancel,group=remote-connection-failed,text=Cannot connect to http://127.0.0.1:6600/hmtp [^] java.net.ConnectException: Connection refused] The issue is that the start-all argument is passed as well as the -server app-2. Starting resin:root /usr/bin/resinctl -server app-2 start-all The script should be changed as follows: 1) Make SERVER default to "start-all" # # Set to the server id to start, the default is to start all. # #SERVER="-server app-0" 2) Remove start all from start and replace with start WAS if test -n "$USER"; then su $USER -c """$RESIN_EXE $ARGS start-all""" 1>> $CONSOLE 2>> $CONSOLE else errors=`$RESIN_EXE $ARGS start-all 2>&1` if [ $? != 0 ]; then log_daemon_msg $errors fi fi MAKE IT if test -n "$USER"; then su $USER -c """$RESIN_EXE $ARGS start """ 1>> $CONSOLE 2>> $CONSOLE else errors=`$RESIN_EXE $ARGS start 2>&1` if [ $? != 0 ]; then log_daemon_msg $errors fi fi | ||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |