- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Cant Run Detach Process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2013 06:45 PM
02-12-2013 06:45 PM
Cant Run Detach Process
Hi there all again. For some reason when i run a process under detached. the process just does not stay in the system.
Below is the file (STARTRDBJDBC.COM) that i created to be sumbit into a detach process.
$ set proc/privi=all
$ @SYS$COMMON:[JAVA$150.COM]JAVA$150_SETUP.COM
$ @SYS$COMMON:[RDB$JDBC.0702-5V386O]RDBJDBC_STARTUP.COM
$ define my_classes rdb$jdbc_home
$ define JAVA$CLASSPATH [],RDB$JDBC_HOME:RDBNATIVE.JAR,RDB$JDBC_HOME:RDBTHIN.JAR
$ set def rdb$jdbc_home
$ spawn/nowait/proc=rdbthinsrv java -jar rdbthinsrv.jar -srv.mcBasePort 0
Here is the file (SUBMIT_JDBC.COM) which submits the file to a detached process.
$ run/detached/authorize/input=STARTRDBJDBC.COM/error=rdbjdbc_error.log -
/output=rdbjdbc_server.log sys$system:loginout.exe
Also below is the end of log file created by @SUBMIT_JDBC.COM
$ set def rdb$jdbc_home
$ spawn/nowait/proc=rdbthinsrv java -jar rdbthinsrv.jar -srv.mcBasePort 0
%DCL-S-SPAWNED, process RDBTHINSRV spawned
MBOOKA job terminated at 13-FEB-2013 11:02:40.56
<CR><LF> Accounting information:
Buffered I/O count: 295 Peak working set size: 1888
Direct I/O count: 99 Peak virtual size: 171936
Page faults: 239 Mounted volumes: 0
Charged CPU time: 0 00:00:00.11 Elapsed time: 0 00:00:00.36
Request if some1 would advise me how to submit this file so that the process runs as a detach process and not terminate upon completion. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2013 07:24 PM
02-12-2013 07:24 PM
Re: Cant Run Detach Process
Why are you spawning rather than running the java command directly?
If you must spawn then you will probably want to remove the /NOWAIT - otherwise the parent process terminates right after spawning off the subprocess and the termination of the parent process also results in the termination of the subprocess. (It does not work the way it would in Unix/Linux.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2013 11:06 PM
02-12-2013 11:06 PM
Re: Cant Run Detach Process
I think you would run a daemon process which stay resident.
I look at my sample code where I used run with /UIC option instead of /AUTHORIZE
Here sample code (lowercase must be supplied)
RUN/DETACH/OUTPUT=RDBJDBC_SERVER.LOG/PROC=process_name/UIC=user_uic-
/INPUT=STARTRDBJDBC.COM SYS$SYSTEM:LOGINOUT
Hope can help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2013 08:30 AM
02-13-2013 08:30 AM
Re: Cant Run Detach Process
Hello,
This is what i did setup at a customer and is working fine:
the contents of jdbc_startup.com
$ set verify
$ NODE = F$GETSYI("NODENAME")
$!
$ set noon
$ rename RDB$JDBC_LOGS:'node'_rdbpool.log *.GOL/LOG
$ set on
$!
$ run sys$system:loginout.exe -
/detach -
/authorize -
/output=rdb$jdbc_logs:'node'_rdbpool.log -
/err=rdb$jdbc_logs:'node'_rdbpool.err -
/process_name=rdbpool -
/input=sys$startup:jdbc_pool.com
$
$ set noverify
$exit
and where jdbc_pool.com contains:
$ node = f$getsyi("nodename")
$ set noverify
$ set def rdb$jdbc_home
$ def java$classpath [],rdb$jdbc_home:rdbnative.jar,rdb$jdbc_home:rdbthin.jar,rdb$jdbc_home:rdbthinsrvpool.jar
$ java -jar rdbthinsrvpool.jar -cfg rdb$jdbc_com:'node'_rdb_jdbc.xml -name rdbpool
$