Anonymous | Login | Signup for a new account | 12-17-2024 10:52 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005022 | [Resin] | minor | always | 04-04-12 14:21 | 06-19-12 16:06 | ||||
Reporter | rickHigh | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.29 | Product Version | 4.0.27 | ||||
Product Build | |||||||||
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 | |||||||||
Attached Files | |||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |