subrat13
asked on
exiting out of the terminal kills the DB process
Hi,
I start dbsrv7 in the startup script of my application. Now after I start the application, when all processes are running., if I exit from the terminal, the next time log in to the machine, I find the dbsrv7 got killed with my application processes.
I am in Solaris2.8 and I run my application as:
login as user
su root
start.sh
dbsrv is started as :
dbspawn dbsrv7 "... " <dbservername> <databse>
exit from shell i.e root, then exit from terminal causes the problem.
I also tried with nohup, but same problem pesisted.
Can anyone please lt me know the cause and the solution?
Any help in this regard is highly appreciable.
Thanks
Subrat
I start dbsrv7 in the startup script of my application. Now after I start the application, when all processes are running., if I exit from the terminal, the next time log in to the machine, I find the dbsrv7 got killed with my application processes.
I am in Solaris2.8 and I run my application as:
login as user
su root
start.sh
dbsrv is started as :
dbspawn dbsrv7 "... " <dbservername> <databse>
exit from shell i.e root, then exit from terminal causes the problem.
I also tried with nohup, but same problem pesisted.
Can anyone please lt me know the cause and the solution?
Any help in this regard is highly appreciable.
Thanks
Subrat
ASKER
I did that also.
But same problem persisted.
The dbsrv is getting killed always.
But same problem persisted.
The dbsrv is getting killed always.
nohup really should do the trick. How exactly did you use nohup in the syntax to start the server?
-bret
-bret
ASKER
In start up script I started DB with the following approaches.
1. nohup dbspawn dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name>
or
2. nohup dbspawn dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name> & ( i.e. back ground)
or
3. nohup dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name> &
( i.e. without dbspawn and background)
ASKER
Hi,
Any more comments or views.
Thanks
Subrat
Any more comments or views.
Thanks
Subrat
ASKER
Hi,
Any more comments or views.
Thanks
Subrat
Any more comments or views.
Thanks
Subrat
Can you humor me on this for a while,
Can you confirm, when you logoff as root, but not from the terminal, is the database still running. If yes, is there something in your profile - or system wide that kills off zombie processess (ie cleans up any processess a user may have started but left running when they logged off).
Can you confirm, when you logoff as root, but not from the terminal, is the database still running. If yes, is there something in your profile - or system wide that kills off zombie processess (ie cleans up any processess a user may have started but left running when they logged off).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
With -ud option it is working fine i.e start the process as a daemon.
Thanks
Subrat
Thanks
Subrat
start.sh &