hsqldb - Connecting to HSQL via Ruby and shutting server down -
i'm trying write ruby script kill database server on localhost.
when run 'ant hsql' starts database (output below) , have keep terminal window open. buildfile: /users/cparaiso/dev/src/testproject-src/build.xml
hsql: install-parent-pom: [artifact:install] [info] installing /users/cparaiso/dev/src/testproject-src/pom.xml /users/cparaiso/.m2/repository/org/jasig/portal/uportal-parent/4.0.3/uportal-parent-4.0.3.pom [touch] creating /var/folders/8v/1k2gkj412q1_8084x6lvtbqr0000gn/t/jasig/uportal-parent.pom-110044247-marker [echo] starting hsql on 8887 [echo] using: file:/users/cparaiso/dev/src/testproject-src/data/uportal [java] [server@6f507fb2]: [thread[main,5,main]]: checkrunning(false) entered [java] [server@6f507fb2]: [thread[main,5,main]]: checkrunning(false) exited [java] [server@6f507fb2]: startup sequence initiated main() method [java] [server@6f507fb2]: not load properties file [java] [server@6f507fb2]: using cli/default properties [java] [server@6f507fb2]: initiating startup sequence... [java] [server@6f507fb2]: server socket opened in 10 ms. [java] [server@6f507fb2]: database [index=0, id=0, db=file:/users/cparaiso/dev/src/testproject-src/data/uportal, alias=uportal] opened sucessfully in 377 ms. [java] [server@6f507fb2]: startup sequence completed in 388 ms. [java] [server@6f507fb2]: 2012-03-07 15:32:25.198 hsqldb server 2.2.8 online on port 8887 [java] [server@6f507fb2]: close normally, connect , execute shutdown sql [java] [server@6f507fb2]: command line, use [ctrl]+[c] abort abruptly
my question how can shutdown server without using kill command in ruby kill process?
if try kill process via kill command 'build failed' , gets stuck until ctrl+c out. not want. ideas? tia
i don't know how issue sql statement in ruby, if connect database server , issue sql statement shutdown
, shutdown server process.
Comments
Post a Comment