...
Code Block | ||
---|---|---|
| ||
#!/bin/bash cd /opt/hsqldb # Add date to nohup.out file which is automatically created by the nohup command to capture any output from commands sent to it echo $(date) >nohup.out # Assuming that java is the the class path. # Execute Java program calling class path where -cp identifies classpath and, # Creates a database file called BonsaiFrameworkResourceBundleDatabaseBonsaiResourceBundleDatabase if it does not exist relative to the current directory # -dbname.0 designates that the database will be called BonsaiFrameworkResourceBundleDatabaseBonsaiResourceBundleDatabase # Sends Java program to background and to not terminate via nohup command. nohup java -cp lib/hsqldb.jar org.hsqldb.Server -database.0 file:data/BonsaiFrameworkResourceBundleDatabaseBonsaiResourceBundleDatabase -dbname.0 BonsaiFrameworkResourceBundleDatabaseBonsaiResourceBundleDatabase & |
Warning |
---|
For some reason the script requires the user to hit an extra return. I believe this is due to the nohup command. Investigate and resolve. |
...